dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonsrc/classic/element/ReactElementValidator.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactNativeComponent.js ModifiedM src/core/instantiateReactComponent.js ModifiedM src/test/ReactTestUtils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…