Created
January 14, 2017 16:27
-
-
Save npverni/1ba29be8a978e025212c0abdc4259095 to your computer and use it in GitHub Desktop.
Creating a React Component using ES5 React.createClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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