@samitouri / QOS-React-2 / commits / f837cc289e

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.

Sebastian Markbage committed Jan 22, 2015 at 18:16 UTC f837cc289e4cecebf20e7995cf7dc6b97b572865
1 file changed -1
src/core/ReactCompositeComponent.js
-1
@@ -108,7 +108,6 @@ var ReactCompositeComponentMixin = {
108 */
109 construct: function(element) {
110 this._currentElement = element;
111 -
111 this._rootNodeID = null;
112 this._instance = null;
113