Last active
December 15, 2020 21:48
-
-
Save BANOnotIT/68f372a4be1a13d31f3a1d4d54880a6b to your computer and use it in GitHub Desktop.
forceUpdate in react functional components
This file contains 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
const [, forceUpdate] = useReducer((a)=> (a + 1) % 100, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment