Created
July 5, 2016 03:53
-
-
Save renanccastro/bd251e400272821dbc93722ac183c2b5 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
"use strict"; | |
var HelloMessage = React.createClass({ | |
displayName: "HelloMessage", | |
render: function render() { | |
return React.createElement( | |
"div", | |
null, | |
"Hello ", | |
this.props.name | |
); | |
} | |
}); | |
ReactDOM.render(React.createElement(HelloMessage, { name: "John" }), mountNode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment