ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
19 lines • 576 B
JavaScript
import { useEditController, } from "./useEditController.js";
/**
* Render prop version of the useEditController hook
*
* @see useEditController
* @example
*
* const EditView = () => <div>...</div>
* const MyEdit = props => (
* <EditController {...props}>
* {controllerProps => <EditView {...controllerProps} {...props} />}
* </EditController>
* );
*/
export const EditController = ({ children, ...props }) => {
const controllerProps = useEditController(props);
return children(controllerProps);
};
//# sourceMappingURL=EditController.js.map