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