diff --git a/docs/contributing/implementation-notes.md b/docs/contributing/implementation-notes.md index bf0be37b05..d236f4ee92 100644 --- a/docs/contributing/implementation-notes.md +++ b/docs/contributing/implementation-notes.md @@ -631,7 +631,7 @@ Instead, we have to unmount the existing internal instance and mount the new one // Replace the old node with the new one // Note: this is renderer-specific code and // ideally should live outside of CompositeComponent: - prevNode.parentNode.replaceChild(prevNode, nextNode); + prevNode.parentNode.replaceChild(nextNode, prevNode); } } ```