katoikia-app/web-ui/web-react/node_modules/react-router/modules/createNamedContext.js

12 lines
287 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +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;
};
export default createNamedContext;