Created
August 29, 2021 14:12
-
-
Save ValentaTomas/c22f695c49f3e91e12f22aa66e41ba87 to your computer and use it in GitHub Desktop.
React hooks for forcing component update
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(() => ({}), {})[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment