Skip to content

Instantly share code, notes, and snippets.

@chrislewisdev
Created August 20, 2017 08:17
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 chrislewisdev/90ea47e9027aaa2a04a39e7f5828fa12 to your computer and use it in GitHub Desktop.
Save chrislewisdev/90ea47e9027aaa2a04a39e7f5828fa12 to your computer and use it in GitHub Desktop.
React Sample
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