Files
coopgo/node_modules/react-router/modules/createNamedContext.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

12 lines
277 B
JavaScript

// 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;