You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
396 B

import createReactContext from '@ant-design/create-react-context/lib/implementation';
const React = require.requireActual('react');
if (!React.createContext) {
React.createContext = createReactContext;
}
if (!React.createRef) {
React.createRef = () => {
const ref = function setRef(node) {
ref.current = node;
};
return ref;
};
}
Object.assign(module.exports, React);