dillon1000/react

Commit

Make sure element is reported correctly by tree devtool

This adds some tests for getElement() and verifies that it works for text components too.
The code that calls the instrumentation is fixed where necessary so that the tests pass.
Browse files
Changed paths5 files
First-parent comparison
M src/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.js ModifiedM src/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.native.js ModifiedM src/renderers/dom/shared/ReactDOMComponent.js ModifiedM src/renderers/shared/stack/reconciler/ReactReconciler.js ModifiedM src/test/ReactComponentTreeTestUtils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…