← Snippets

useForceUpdate Hook

1function useForceUpdate() {
2 const [value, set] = React.useState(true)
3 return () => set(!value)
4}
5
Site Logo - Andrew Lazenka
© 2021 Andrew Lazenka. All Rights Reserved.