mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.
This commit is contained in:
@@ -108,7 +108,6 @@ var ReactCompositeComponentMixin = {
|
||||
*/
|
||||
construct: function(element) {
|
||||
this._currentElement = element;
|
||||
|
||||
this._rootNodeID = null;
|
||||
this._instance = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user