Files
simply_cpq/website/node_modules/@base-ui/utils/safeReact.d.mts
T
2026-08-07 21:39:30 +02:00

10 lines
441 B
TypeScript

import * as React from '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
*/
export declare const SafeReact: typeof React;