UNPKG

lightweight-globalstate

Version:

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

5 lines (4 loc) 158 B
import React from "react"; export declare const StateProvider: <T>(props: React.PropsWithChildren<{ initialState?: T | undefined; }>) => JSX.Element;