Files
OneOS1.2/src/common/react-dom-shim.js
王冕 7ef8852919 Initial commit: OneOS prototype workspace baseline.
Include weekly report and other prototype sources with project tooling config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 15:36:52 +08:00

25 lines
482 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// react-dom-shim.js
const RD = window.ReactDOM;
export default RD;
// ReactDOM 18+ (createRoot / hydrateRoot)
export const {
createRoot,
hydrateRoot,
// ReactDOM 17 兼容 API一些环境仍然可能需要
render,
hydrate,
unmountComponentAtNode,
findDOMNode,
// Server side features (如果 CDN 提供)
createPortal,
// React 18 Transition API可能存在
flushSync,
unstable_batchedUpdates,
unstable_renderSubtreeIntoContainer,
} = RD;