react hook force update code example Example: force update react hooks const forceUpdate = React.useReducer(() => ({}), {})[1] as () => void