aswi2020vldc-gitlab/templetes/node_modules/react-router/modules/RouterContext.js @ 143404cb
1 | 3a515b92 | cagy | // TODO: Replace with React.createContext once we can assume React 16+
|
---|---|---|---|
2 | import createContext from "mini-create-react-context"; |
||
3 | |||
4 | const createNamedContext = name => { |
||
5 | const context = createContext(); |
||
6 | context.displayName = name; |
||
7 | |||
8 | return context; |
||
9 | };
|
||
10 | |||
11 | const context = /*#__PURE__*/ createNamedContext("Router"); |
||
12 | export default context; |