UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

4 lines (3 loc) 257 B
import type { SetReStateAction, UniqueKey } from '../core/types'; import type { DispatchReState } from './types'; export declare function createReState<S>(key: UniqueKey, initialValue?: SetReStateAction<S>): () => [S, DispatchReState<SetReStateAction<S>>];