use-between
Version:
How to share React hooks state between components
16 lines (15 loc) • 411 B
TypeScript
declare type AnyHook = (...args: any[]) => any;
declare type ReactSharedInternalsType = {
ReactCurrentDispatcher: {
current?: {
[name: string]: AnyHook;
};
};
};
export declare const ReactSharedInternals: ReactSharedInternalsType;
export declare const ReactCurrentDispatcher: {
current?: {
[name: string]: AnyHook;
} | undefined;
};
export {};