UNPKG

contextism

Version:

New way to use React Context

5 lines (4 loc) 345 B
/// <reference types="react" /> export { default as createStore } from './createStore'; export declare const useContext: (context: import("react").Context<any>) => any; export declare const useStore: <S, D>(state?: import("react").Context<S | undefined> | undefined, dispatch?: import("react").Context<D | undefined> | undefined) => [S, D];