Skip to content

Instantly share code, notes, and snippets.

@jonnung
Last active April 28, 2016 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnung/5de895195ceb4a2773a0397b82696d6e to your computer and use it in GitHub Desktop.
Save jonnung/5de895195ceb4a2773a0397b82696d6e to your computer and use it in GitHub Desktop.
[DalkStudy] React를 모듈로 불러오기 (CommonJS st.)
// CommonJS style
var React = require('react');
var ReactDOM = require('react-dom');
var Greeting = React.createClass({
render: function () {
return (
<p> Hello, Dalk Study</p>
);
}
});
ReactDOM.render(
<Greeting/>,
document.getElementById('greeting-div')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment