GoScrobble/web/node_modules/react-router/modules/RouterContext.js

13 lines
336 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
// TODO: Replace with React.createContext once we can assume React 16+
import createContext from "mini-create-react-context";
const createNamedContext = name => {
const context = createContext();
context.displayName = name;
return context;
};
const context = /*#__PURE__*/ createNamedContext("Router");
export default context;