UNPKG

rex-state

Version:

Convert hooks into shared states between react components

9 lines (8 loc) 278 B
import { ReactNode } from 'react'; export declare const createRexStore: <T, V>(useRexState: (value?: V | undefined) => T) => { RexProvider: ({ children, value, }: { children: ReactNode; value?: V | undefined; }) => JSX.Element; useStore: () => T; };