Skip to content

Instantly share code, notes, and snippets.

@dinks
Created September 23, 2015 22:20
Show Gist options
  • Save dinks/e137b3c25deb2900e8ca to your computer and use it in GitHub Desktop.
Save dinks/e137b3c25deb2900e8ca to your computer and use it in GitHub Desktop.
Simple jsx
/** @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