MCPcopy Create free account
hub / github.com/microsoft/SandDance / placeSingleChild

Function placeSingleChild

docs/external/js/react-dom.development.js:13672–13680  ·  view source on GitHub ↗
(newFiber)

Source from the content-addressed store, hash-verified

13670 }
13671
13672 function placeSingleChild(newFiber) {
13673 // This is simpler for the single child case. We only need to do a
13674 // placement for inserting new children.
13675 if (shouldTrackSideEffects && newFiber.alternate === null) {
13676 newFiber.effectTag = Placement;
13677 }
13678
13679 return newFiber;
13680 }
13681
13682 function updateTextNode(returnFiber, current, textContent, expirationTime) {
13683 if (current === null || current.tag !== HostText) {

Callers 1

reconcileChildFibersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected