Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

forceupdate usereducer

const [_, forceUpdate] = useReducer((x) => x + 1, 0);
// usage
<button onClick={forceUpdate}>Force update</button>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #forceupdate #usereducer
ADD COMMENT
Topic
Name
7+8 =