MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / commitDeletion

Function commitDeletion

mini-react/src/mini-react.js:282–288  ·  view source on GitHub ↗
(fiber, domParent)

Source from the content-addressed store, hash-verified

280 }
281
282 function commitDeletion(fiber, domParent) {
283 if (fiber.dom) {
284 domParent.removeChild(fiber.dom)
285 } else {
286 commitDeletion(fiber.child, domParent)
287 }
288 }
289
290 function isDepsEqual(deps, newDeps) {
291 if(deps.length !== newDeps.length) {

Callers 1

commitWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected