Browse Source

Fix a typo in the doc (#7969)

main
CT Wu 8 years ago
committed by Dan Abramov
parent
commit
036832a302
  1. 4
      contributing/implementation-notes.md

4
contributing/implementation-notes.md

@ -623,10 +623,10 @@ Instead, we have to unmount the existing internal instance and mount the new one
// Unmount the old child and mount a new child // Unmount the old child and mount a new child
prevRenderedComponent.unmount(); prevRenderedComponent.unmount();
var nextRenderedComponent = instantiateComponent(nextRenderedElement); var nextRenderedComponent = instantiateComponent(nextRenderedElement);
var nextNode = renderedComponent.mount(); var nextNode = nextRenderedComponent.mount();
// Replace the reference to the child // Replace the reference to the child
this.renderedComponent = renderedComponent; this.renderedComponent = nextRenderedComponent;
// Replace the old node with the new one // Replace the old node with the new one
// Note: this is renderer-specific code and // Note: this is renderer-specific code and

Loading…
Cancel
Save