Created
September 23, 2015 22:20
-
-
Save dinks/e137b3c25deb2900e8ca to your computer and use it in GitHub Desktop.
Simple jsx
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
/** @jsx React.DOM */ | |
var HelloMessage = React.createClass({ | |
render: function() { | |
return <div>{'Hello ' + this.props.name}<div>; | |
} | |
}); | |
React.renderComponent(<HelloMessage name="John" />, document.getElementById('container')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment