dillon1000/react
Commit
Browse files 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
Changed paths3 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactDOMRoot-test.js ModifiedM packages/react-dom/src/client/ReactDOM.js ModifiedM packages/react-dom/src/client/ReactDOMComponentTree.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…