UNPKG

lightweight-globalstate

Version:

An lightweight and easy state management hook for using React + Typescript

4 lines (3 loc) 144 B
declare type GlobalStateHook<T> = [T, (newState: any) => void]; export declare const useGlobalState: <T>() => GlobalStateHook<T>; export {};