Skip to content

Instantly share code, notes, and snippets.

@npverni
Created January 14, 2017 16:27
Show Gist options
  • Save npverni/1ba29be8a978e025212c0abdc4259095 to your computer and use it in GitHub Desktop.
Save npverni/1ba29be8a978e025212c0abdc4259095 to your computer and use it in GitHub Desktop.
Creating a React Component using ES5 React.createClass
var Profile = React.createClass({
render: function() {
return (
<div>
<h1>{this.props.name}</h1>
<p>{this.props.bio}</p>
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment