Files
boc/landvex/node_modules/react-router/modules/createNamedContext.js
T

12 lines
277 B
JavaScript
Raw Normal View History

// TODO: Replace with React.createContext once we can assume React 16+
import createContext from "./createContext";
const createNamedContext = name => {
const context = createContext();
context.displayName = name;
return context;
};
export default createNamedContext;