Forcing Re Render

You can use an incrementing counter to force a re-render even if the state has not changed:


RESETRUNFULL
const [ignored, forceUpdate] = useReducer(x => x + 1, 0);function handleClick() {
   forceUpdate();}