UNPKG

applesauce-react

Version:

React hooks for applesauce

8 lines (7 loc) 401 B
import { EventFactory } from "applesauce-factory"; import { PropsWithChildren } from "react"; export declare const FactoryContext: import("react").Context<EventFactory | undefined>; /** Provides an {@link EventFactory} to the component tree */ export declare function FactoryProvider({ factory, children }: PropsWithChildren<{ factory?: EventFactory; }>): import("react/jsx-runtime").JSX.Element;