dillon1000/react

Commit

Type ReactComponentTreeHook (#7504)

For this one, I wanted to type a non-trivial piece of the codebase and ran into the fact that we do not have types for ReactElement nor ReactInstance, so I had to create them.

I'll add comments inline
Browse files
Changed paths3 files
First-parent comparison
A src/isomorphic/classic/element/ReactElementType.js AddedM src/isomorphic/hooks/ReactComponentTreeHook.js ModifiedA src/renderers/shared/stack/reconciler/ReactInstanceType.js Added
Patch

Files changed

Rendering syntax-highlighted changes…