UNPKG

@vorthain/react-state

Version:

A minimal and reactive state management library for React, enabling automatic UI updates through direct, mutable state changes.

6 lines (5 loc) 208 B
/** * Hook to create local observable state * Automatically integrates with vGrip when used inside a vGrip component */ export declare function useVstate<T extends object>(initialState: T | (() => T)): T;