Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 26, 2020 11:49
Show Gist options
  • Save velotiotech/f4227eb8029021fa9c8cba7dc9e2f178 to your computer and use it in GitHub Desktop.
Save velotiotech/f4227eb8029021fa9c8cba7dc9e2f178 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