dillon1000/react

Commit

Warn if using React.unmountComponentAtNode on a different React instance's tree. (#7456)

* Warn when using React.unmountComponentAtNode on a different React instance's tree

https://github.com/facebook/react/issues/3787

* Adding tests.

* Implementing recommended changes.

https://github.com/facebook/react/issues/3787
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/client/ReactMount.js ModifiedM src/renderers/dom/client/__tests__/ReactMount-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…