Skip to content

Instantly share code, notes, and snippets.

@rajat1saxena
Created January 26, 2018 10:29
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 rajat1saxena/20f8975fcac8dd938b8bd46ae4c0f53e to your computer and use it in GitHub Desktop.
Save rajat1saxena/20f8975fcac8dd938b8bd46ae4c0f53e to your computer and use it in GitHub Desktop.
class Counter extends React.Component {
// this method should be present in your component
render() {
return (
<div>
{this.props.name}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment