Skip to content

Instantly share code, notes, and snippets.

@StevenJL
Created January 23, 2016 08:29
Show Gist options
  • Save StevenJL/615404c3eaa7ed552bc6 to your computer and use it in GitHub Desktop.
Save StevenJL/615404c3eaa7ed552bc6 to your computer and use it in GitHub Desktop.
var CommentList = React.createClass({
render: function() {
return (
<div className="commentList">
Hello, world! I am a CommentList.
</div>
);
}
});
var CommentForm = React.createClass({
render: function() {
return (
<div className="commentForm">
Hello, world! I am a CommentForm.
</div>
);
}
});
var CommentBox = React.createClass({
render: function() {
return (
<div className="commentBox">
<h1>Comments</h1>
<CommentList />
<CommentForm />
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment