Created
January 7, 2021 05:54
-
-
Save robzlabz/ccc657543a20da9809735c37d292191f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onClick={() => | |
this.setState((state) => { | |
return { | |
...state, | |
count: state.count + 1 | |
}; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment