Created
September 17, 2018 19:20
-
-
Save leslie-alldridge/8028caba2e9e49149f4443767c28bd3a to your computer and use it in GitHub Desktop.
toggle prev state react
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
this.setState(prevState => ({ | |
check: !prevState.check | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment