Skip to content

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);

Demo ​

Api ​

Parameters

NameTypeDefaultNote
initialValueValue-The initial value

Source ​

Source • Demo

Contributors ​

Avatardebabin

Released under the MIT License.