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

Function insertInContainerBefore

docs/external/js/react-dom.development.js:7716–7722  ·  view source on GitHub ↗
(container, child, beforeChild)

Source from the content-addressed store, hash-verified

7714 parentInstance.insertBefore(child, beforeChild);
7715 }
7716 function insertInContainerBefore(container, child, beforeChild) {
7717 if (container.nodeType === COMMENT_NODE) {
7718 container.parentNode.insertBefore(child, beforeChild);
7719 } else {
7720 container.insertBefore(child, beforeChild);
7721 }
7722 }
7723 function removeChild(parentInstance, child) {
7724 parentInstance.removeChild(child);
7725 }

Calls

no outgoing calls

Tested by

no test coverage detected