Created
August 20, 2017 08:17
-
-
Save chrislewisdev/90ea47e9027aaa2a04a39e7f5828fa12 to your computer and use it in GitHub Desktop.
React Sample
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
class Greetings extends React.Component | |
{ | |
render() | |
{ | |
return ( | |
<h1>Greetings, {this.props.name}!</h1> | |
); | |
} | |
} | |
ReactDOM.render( | |
<Greetings name="Chris" />, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment