Considering below hooks example
import { useState } from \'react\'; function Example() { const [count, setCount] = useState(0); return
You can simply define the useState like that:
const [, forceUpdate] = React.useState(0);
And usage: forceUpdate(n => !n)
forceUpdate(n => !n)
Hope this help !