ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
12 lines • 490 B
JavaScript
import * as React from 'react';
import { BasenameContext } from "./BasenameContext.js";
/**
* Set the string to append to all links to the admin app.
*
* Useful when the app is mounted on a sub path, e.g. '/admin'.
* Used internally by the `<Admin>` component.
*
* @see useBasename
*/
export const BasenameContextProvider = ({ children, basename }) => (React.createElement(BasenameContext.Provider, { value: basename }, children));
//# sourceMappingURL=BasenameContextProvider.js.map