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 • 750 B
TypeScript
/// <reference types="react" />
import { CreateControllerResult } from './useCreateController';
/**
* Context to store the result of the useCreateController() hook.
*
* Use the useCreateContext() hook to read the context. That's what the Create components do in react-admin.
*
* @example
*
* import { useCreateController, CreateContextProvider } from 'ra-core';
*
* const Create = props => {
* const controllerProps = useCreateController(props);
* return (
* <CreateContextProvider value={controllerProps}>
* ...
* </CreateContextProvider>
* );
* };
*/
export declare const CreateContext: import("react").Context<CreateControllerResult<any> | null>;
//# sourceMappingURL=CreateContext.d.ts.map