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

Function findDOMNode

compat/src/index.js:116–122  ·  view source on GitHub ↗

* Get the matching DOM node for a component * @param {import('./internal').Component} component * @returns {import('./internal').PreactElement | null}

(component)

Source from the content-addressed store, hash-verified

114 * @returns {import('./internal').PreactElement | null}
115 */
116function findDOMNode(component) {
117 return (
118 (component &&
119 (component.base || (component.nodeType === 1 && component))) ||
120 null
121 );
122}
123
124/**
125 * Deprecated way to control batched rendering inside the reconciler, but we

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…