UNPKG

use-between

Version:

How to share React hooks state between components

16 lines (15 loc) 373 B
type AnyHook = (...args: any[]) => any; type ReactSharedInternalsType = { ReactCurrentDispatcher: { current?: { [name: string]: AnyHook; }; }; } | { H: { [name: string]: AnyHook; } | null; }; export declare const ReactSharedInternals: ReactSharedInternalsType; export declare const ReactCurrentDispatcher: {}; export {};