@reactivers/use-global-state
Version:
Global State in React with hooks and providers
10 lines (9 loc) • 374 B
TypeScript
import { FC } from "react";
interface GlobalStateContext {
globalState: Record<string, any>;
setGlobalState: (param: any) => void;
}
declare const GlobalStateContext: import("react").Context<GlobalStateContext>;
declare const GlobalStateProvider: FC;
export declare const useGlobalStateContext: () => GlobalStateContext;
export default GlobalStateProvider;