Initial commit: OneOS prototype workspace baseline.
Include weekly report and other prototype sources with project tooling config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
24
src/common/react-dom-shim.js
vendored
Normal file
24
src/common/react-dom-shim.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user