UNPKG

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 562 B
import { useShowController, } from "./useShowController.js"; /** * Render prop version of the useShowController hook * * @see useShowController * @example * * const ShowView = () => <div>...</div> * const MyShow = () => ( * <ShowController> * {controllerProps => <ShowView {...controllerProps} {...props} />} * </ShowController> * ); */ export const ShowController = ({ children, ...props }) => { const controllerProps = useShowController(props); return children(controllerProps); }; //# sourceMappingURL=ShowController.js.map