mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 08:19:37 +08:00
12 lines
274 B
JavaScript
12 lines
274 B
JavaScript
|
const React = require.requireActual('react');
|
||
|
|
||
|
if (!React.createContext) {
|
||
|
React.createContext = () => {
|
||
|
const Provider = ({ children }) => children;
|
||
|
const Consumer = ({ children }) => children();
|
||
|
return { Provider, Consumer };
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = React;
|