Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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