Fix a typo in the doc (#7969)
CT Wu committed
Oct 13, 2016 at 23:58 UTC
836a0547194f7046564f36f1fe4b3635d5b11064
1 file changed
+2
-2
docs/contributing/implementation-notes.md
+2
-2
@@ -623,10 +623,10 @@ Instead, we have to unmount the existing internal instance and mount the new one
623
// Unmount the old child and mount a new child
624
prevRenderedComponent.unmount();
625
var nextRenderedComponent = instantiateComponent(nextRenderedElement);
626
- var nextNode = renderedComponent.mount();
626
+ var nextNode = nextRenderedComponent.mount();
627
628
// Replace the reference to the child
629
- this.renderedComponent = renderedComponent;
629
+ this.renderedComponent = nextRenderedComponent;
630
631
// Replace the old node with the new one
632
// Note: this is renderer-specific code and