dillon1000/react

Commit

Move ref code to ReactCompositeComponent

You can only get a ref to a ReactCompositeComponent, so move the ref code here which gives us more flexibility to put it at the correct time in the lifecycle.

There should be no behavior change in this commit.

Test Plan: jest
Browse files
Changed paths3 files
First-parent comparison
M src/core/ReactComponent.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactRef.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…