19 lines
676 B
JavaScript
19 lines
676 B
JavaScript
"use strict";
|
|
|
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.SafeReact = void 0;
|
|
var React = _interopRequireWildcard(require("react"));
|
|
/**
|
|
* A clone of the React namespace for reading APIs that may be missing in older
|
|
* supported React versions. Bundlers can rewrite direct `React.someNewApi`
|
|
* reads into named imports, which breaks React 17. Reading from this cloned
|
|
* object keeps those lookups optional.
|
|
*
|
|
* @see https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379
|
|
*/
|
|
const SafeReact = exports.SafeReact = {
|
|
...React
|
|
}; |