MCPcopy Create free account
hub / github.com/reactjs/react-rails / updateTextNode

Function updateTextNode

lib/assets/react-source/development/react.js:17242–17254  ·  view source on GitHub ↗
(returnFiber, current, textContent, expirationTime)

Source from the content-addressed store, hash-verified

17240 }
17241
17242 function updateTextNode(returnFiber, current, textContent, expirationTime) {
17243 if (current === null || current.tag !== HostText) {
17244 // Insert
17245 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
17246 created.return = returnFiber;
17247 return created;
17248 } else {
17249 // Update
17250 var existing = useFiber(current, textContent);
17251 existing.return = returnFiber;
17252 return existing;
17253 }
17254 }
17255
17256 function updateElement(returnFiber, current, element, expirationTime) {
17257 if (current !== null) {

Callers 2

updateSlotFunction · 0.85
updateFromMapFunction · 0.85

Calls 2

createFiberFromTextFunction · 0.85
useFiberFunction · 0.85

Tested by

no test coverage detected