/** * What the bundle gets for `import … from 'react-dom'`: the ReactDOM WordPress * ships (window.ReactDOM, from the "react-dom" script). See wordpress/react.ts. */ import type * as ReactDOMTypes from 'react-dom'; declare global { interface Window { ReactDOM: typeof ReactDOMTypes; } } const WP = window.ReactDOM; export const { createPortal, flushSync, version } = WP; export default WP;