MCPcopy Create free account
hub / github.com/Lobos/react-ui / getLeafNode

Function getLeafNode

docs/lib/react.js:16873–16878  ·  view source on GitHub ↗

* Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode}

(node)

Source from the content-addressed store, hash-verified

16871 */
16872
16873function getLeafNode(node) {
16874 while (node && node.firstChild) {
16875 node = node.firstChild;
16876 }
16877 return node;
16878}
16879
16880/**
16881 * Get the next sibling within a container. This will walk up the

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…