Created
June 29, 2014 12:51
-
-
Save yoshuawuyts/1df67cf3feb5816728e8 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Module dependencies. | |
*/ | |
var react = require('react'); | |
/** | |
* Define our component. | |
*/ | |
function ourComponent(props) { | |
this.render = function() { | |
return react.DOM.div(null, 'hello world'); | |
} | |
} | |
/** | |
* Render our component. | |
*/ | |
react.rendercomponent(ourComponent, window.document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment