Skip to content

Instantly share code, notes, and snippets.

@androidfanatic
Created March 23, 2020 07: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 androidfanatic/18ba91575f8da96180adc4a56e970b4f to your computer and use it in GitHub Desktop.
Save androidfanatic/18ba91575f8da96180adc4a56e970b4f to your computer and use it in GitHub Desktop.
render() {
const { count } = this.state;
return (
<div className="App">
<button
onClick={() => {
this.setState({ count: count + 1 });
}}>
COUNT ({count})
</button>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment