UNPKG

ra-core

Version:

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

23 lines 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EditController = void 0; const useEditController_1 = require("./useEditController.cjs"); /** * Render prop version of the useEditController hook * * @see useEditController * @example * * const EditView = () => <div>...</div> * const MyEdit = props => ( * <EditController {...props}> * {controllerProps => <EditView {...controllerProps} {...props} />} * </EditController> * ); */ const EditController = ({ children, ...props }) => { const controllerProps = (0, useEditController_1.useEditController)(props); return children(controllerProps); }; exports.EditController = EditController; //# sourceMappingURL=EditController.js.map