Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save ryanflorence/3e1fb8d85f0f010b23fc to your computer and use it in GitHub Desktop.

Select an option

Save ryanflorence/3e1fb8d85f0f010b23fc to your computer and use it in GitHub Desktop.
var SomeComponent = React.createClass({
// ... "real" javascript here
render: function() {
return require('./template')(this.props, this.state);
}
});
module.exports = function(props, state){
return (
<div>
<h1>{props.title}</h1>
<div>{state.body}</div>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment