UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

7 lines (6 loc) 317 B
import type { UniqueKey, SetReStateAction } from '../core/types'; import type { DispatchReState } from './types'; export declare function useReState<S>(key: UniqueKey, initialValue?: SetReStateAction<S>): [S, DispatchReState<SetReStateAction<S>>]; export declare namespace useReState { var displayName: string; }