dillon1000/react

Commit

Let ReactDOM initialize in RSC (#25503)

With the `react-dom/server-rendering-stub` you can import `react-dom` in
RSC so that you can call `preload` and `preinit` but if you don't alias
it, then requiring it breaks because we React.Component which doesn't
exist in the react subset.
Browse files
Changed paths5 files
First-parent comparison
A packages/react-dom/src/__tests__/ReactDOMInReactServer-test.js AddedM packages/react-reconciler/src/ReactFiberClassComponent.new.js ModifiedM packages/react-reconciler/src/ReactFiberClassComponent.old.js ModifiedA packages/react/react.shared-subset.js AddedM scripts/jest/setupHostConfigs.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…