UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

22 lines 717 B
/// <reference types="react" /> import { EditControllerResult } from './useEditController'; /** * Context to store the result of the useEditController() hook. * * Use the useEditContext() hook to read the context. That's what the Edit components do in react-admin. * * @example * * import { useEditController, EditContextProvider } from 'ra-core'; * * const Edit = props => { * const controllerProps = useEditController(props); * return ( * <EditContextProvider value={controllerProps}> * ... * </EditContextProvider> * ); * }; */ export declare const EditContext: import("react").Context<EditControllerResult | null>; //# sourceMappingURL=EditContext.d.ts.map