MCPcopy Index your code
hub / github.com/preactjs/preact / unmountComponentAtNode

Function unmountComponentAtNode

compat/src/index.js:103–109  ·  view source on GitHub ↗

* Remove a component tree from the DOM, including state and event handlers. * @param {import('./internal').PreactElement} container * @returns {boolean}

(container)

Source from the content-addressed store, hash-verified

101 * @returns {boolean}
102 */
103function unmountComponentAtNode(container) {
104 if (container._children) {
105 preactRender(null, container);
106 return true;
107 }
108 return false;
109}
110
111/**
112 * Get the matching DOM node for a component

Callers 3

createRootFunction · 0.90
createRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…