mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Typo fix in comment (#17111)
This commit is contained in:
committed by
Brandon Dail
parent
f6b8d31a76
commit
3f9c036758
+1
-1
@@ -34,7 +34,7 @@ export function markContainerAsRoot(hostRoot, node) {
|
||||
// If the target node is part of a hydrated or not yet rendered subtree, then
|
||||
// this may also return a SuspenseComponent or HostRoot to indicate that.
|
||||
// Conceptually the HostRoot fiber is a child of the Container node. So if you
|
||||
// pass the Container node as the targetNode, you wiill not actually get the
|
||||
// pass the Container node as the targetNode, you will not actually get the
|
||||
// HostRoot back. To get to the HostRoot, you need to pass a child of it.
|
||||
// The same thing applies to Suspense boundaries.
|
||||
export function getClosestInstanceFromNode(targetNode) {
|
||||
|
||||
Reference in New Issue
Block a user