Skip to content

Instantly share code, notes, and snippets.

@expalmer
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expalmer/43952d905d75693dea0c to your computer and use it in GitHub Desktop.
Save expalmer/43952d905d75693dea0c to your computer and use it in GitHub Desktop.
React Example
/** @jsx React.DOM */
var Hello = React.createClass({
getInitialState: function() {
return { title: 'Hello World' };
},
render: function() {
return <div><h1>{this.state.title}</h1></div>;
}
});
React.renderComponent(
<Hello />,
document.body
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment