dillon1000/react

Commit

Move component class instantiation into ReactCompositeComponent

We need to move instantiation into the mount phase for context purposes.

To do this I moved the shallow rendering stuff into ReactTestUtils and
reused more of the existing code for it by instantiating a noop child.

Everywhere we refer to the "type" we should pass it to ReactNativeComponent
to resolve any string value into the underlying composite.
Browse files
Changed paths5 files
First-parent comparison
M src/classic/element/ReactElementValidator.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactNativeComponent.js ModifiedM src/core/instantiateReactComponent.js ModifiedM src/test/ReactTestUtils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…