Skip to content

useRefState ​

utilities
test coverage
Last changed: 28 days ago

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

Source ​

Source • Demo

Contributors ​

Avatardebabin
AvatarAlexander Lee

Released under the MIT License.