Skip to content

useRefState ​

Category
Lifecycle

Hook that returns the state reference of the value

typescript
import { useRefState } from '@siberiacancode/reactuse';

Usage ​

typescript
const internalRefState = useRefState();

Demo ​

Api ​

Parameters

NameTypeDefaultNote
initialValue?Value-The initial value

Contributors ​

Source • Demo