UNPKG

@juanjo4u/react_context

Version:
13 lines (10 loc) 286 B
import { FunctionComponent } from "react"; type AnyFunction = (...args: Array<any>) => any; export interface ContextParams { initialState?: any, onStateUpdate?: AnyFunction } export interface ReturnContext { useContext: AnyFunction, provider: FunctionComponent<any> }