Skip to content

Instantly share code, notes, and snippets.

@almond-bongbong
Created September 4, 2018 12:37
Show Gist options
  • Save almond-bongbong/983c4c7496e00e61848eda606e752c54 to your computer and use it in GitHub Desktop.
Save almond-bongbong/983c4c7496e00e61848eda606e752c54 to your computer and use it in GitHub Desktop.
incrementCount(prevState, props) {
return {
count: prevState.count + 1,
};
}
handleCount() {
this.setState(incrementCount);
this.setState(incrementCount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment