This commit is contained in:
11
node_modules/react-router/modules/createNamedContext.js
generated
vendored
Normal file
11
node_modules/react-router/modules/createNamedContext.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user