MCPcopy
hub / github.com/preactjs/preact / removeNode

Function removeNode

test/fixtures/preact.js:88–91  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

86 return node;
87 }
88 function removeNode(node) {
89 var parentNode = node.parentNode;
90 if (parentNode) parentNode.removeChild(node);
91 }
92 function setAccessor(node, name, old, value, isSvg) {
93 if ('className' === name) name = 'class';
94 if ('key' === name);

Callers 3

innerDiffNodeFunction · 0.70
recollectNodeTreeFunction · 0.70
unmountComponentFunction · 0.70

Calls 1

removeChildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…