Skip to content

Instantly share code, notes, and snippets.

@olance
Created August 28, 2014 00:09
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 olance/f730248bd8e7948fa47f to your computer and use it in GitHub Desktop.
Save olance/f730248bd8e7948fa47f to your computer and use it in GitHub Desktop.
// ...
var PostHeader = React.createClass({
render: function() {
return (
<div className="post-header">
<h2>{this.props.post.title}</h2>
<div className="post-meta">
By {this.props.post.author} – {this.props.post.created_at}
</div>
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment