dillon1000/react

Commit

Warn when doing createRoot twice on the same node (another approach) (#17329)

* Unify fields used for createRoot warning and event system

* Warn when doing createRoot twice on the same node

* Stricter check for modern roots

* Unmark asynchronously

* Fix Flow
Browse files
Changed paths3 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMRoot-test.js ModifiedM packages/react-dom/src/client/ReactDOM.js ModifiedM packages/react-dom/src/client/ReactDOMComponentTree.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…