Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 26, 2020 11:46
Show Gist options
  • Save velotiotech/4ed0152ac7e5f249f3dbe15855ccfc92 to your computer and use it in GitHub Desktop.
Save velotiotech/4ed0152ac7e5f249f3dbe15855ccfc92 to your computer and use it in GitHub Desktop.
<button
onClick={() => {
this.setState({ count: this.state.count + 1 });
}}>
COUNT ({this.state.count})
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment