Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

force update react hooks

const forceUpdate = React.useReducer(() => ({}), {})[1] as () => void
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #force #update #react #hooks
ADD COMMENT
Topic
Name
2+3 =