Last active
April 28, 2016 01:36
-
-
Save jonnung/5de895195ceb4a2773a0397b82696d6e to your computer and use it in GitHub Desktop.
[DalkStudy] React를 모듈로 불러오기 (CommonJS st.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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