useRefState ​
Hook that returns the state reference of the value
utilities
test coverage
Last changed: last month
Installation ​
Library
CLI
Manual
typescript
import { useRefState } from '@siberiacancode/reactuse';
Usage ​
typescript
const internalRefState = useRefState();
Demo ​
Api ​
Type declaration ​
typescript
export interface StateRef<Value> {
(node: Value): void;
current: Value;
state?: Value;
}
Source ​
Source • DemoContributors ​
D
A