Skip to content

Instantly share code, notes, and snippets.

@BANOnotIT
Last active December 15, 2020 21:48
Show Gist options
  • Save BANOnotIT/68f372a4be1a13d31f3a1d4d54880a6b to your computer and use it in GitHub Desktop.
Save BANOnotIT/68f372a4be1a13d31f3a1d4d54880a6b to your computer and use it in GitHub Desktop.
forceUpdate in react functional components
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