dillon1000/react

Commit

Remove unnecessary indirection and events from the hooks (#7464)

* Remove unnecessary indirection from the tree hook

* Replace onSetDisplayName, onSetOwner, onSetText with one event

Less events is better.
onSetDisplayName, onSetOwner, and onSetText only existed because we didn't initially track elements.

* Remove unused variables
Browse files
Changed paths7 files
First-parent comparison
M src/isomorphic/hooks/ReactComponentTreeHook.js ModifiedM src/renderers/dom/shared/ReactDOMComponent.js ModifiedM src/renderers/dom/shared/ReactDOMTextComponent.js ModifiedM src/renderers/native/ReactNativeTextComponent.js ModifiedM src/renderers/shared/ReactDebugTool.js ModifiedM src/renderers/shared/stack/reconciler/instantiateReactComponent.js ModifiedM src/test/ReactTestUtils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…