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