Fix ReactMount._renderNewRootComponent signature (ReactComponent -> ReactElement)
Vincent Siao committed
Feb 15, 2015 at 19:12 UTC
96e4e3cbbcea5c2367024c92c206f15d0b20f0d1
1 file changed
+4
-4
src/browser/ui/ReactMount.js
+4
-4
@@ -279,7 +279,7 @@ function batchedMountComponentIntoNode(
279
}
280
281
/**
282
- * Mounting is the process of initializing a React component by creatings its
282
+ * Mounting is the process of initializing a React component by creating its
283
* representative DOM elements and inserting them into a supplied `container`.
284
* Any prior content inside `container` is destroyed in the process.
285
*
@@ -369,13 +369,13 @@ var ReactMount = {
369
370
/**
371
* Render a new component into the DOM.
372
- * @param {ReactComponent} nextComponent component instance to render
372
+ * @param {ReactElement} nextElement element to render
373
* @param {DOMElement} container container to render into
374
* @param {boolean} shouldReuseMarkup if we should skip the markup insertion
375
* @return {ReactComponent} nextComponent
376
*/
377
_renderNewRootComponent: function(
378
- nextComponent,
378
+ nextElement,
379
container,
380
shouldReuseMarkup
381
) {
@@ -390,7 +390,7 @@ var ReactMount = {
390
'componentDidUpdate.'
391
);
392
393
- var componentInstance = instantiateReactComponent(nextComponent, null);
393
+ var componentInstance = instantiateReactComponent(nextElement, null);
394
var reactRootID = ReactMount._registerComponent(
395
componentInstance,
396
container