MCPcopy Create free account
hub / github.com/plotly/dash / clearContainer

Function clearContainer

dash/deps/react-dom@18.3.1.js:11187–11195  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

11185 textInstance.nodeValue = text;
11186 }
11187 function clearContainer(container) {
11188 if (container.nodeType === ELEMENT_NODE) {
11189 container.textContent = '';
11190 } else if (container.nodeType === DOCUMENT_NODE) {
11191 if (container.documentElement) {
11192 container.removeChild(container.documentElement);
11193 }
11194 }
11195 } // -------------------
11196 function canHydrateInstance(instance, type, props) {
11197 if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
11198 return null;

Callers 1

Calls 1

removeChildMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…