useRafValue ​
utilities
test coverage
Last changed: last month
Hook that returns the value and a function to set the value
typescript
import { useRafValue } from '@siberiacancode/reactuse';
Usage ​
typescript
const [value, setValue] = useRafValue(initialValue);