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

Function internalGetID

docs/lib/react.js:11178–11183  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

11176}
11177
11178function internalGetID(node) {
11179 // If node is something like a window, document, or text node, none of
11180 // which support attributes or a .getAttribute method, gracefully return
11181 // the empty string, as if the attribute were missing.
11182 return node.getAttribute && node.getAttribute(ATTR_NAME) || '';
11183}
11184
11185/**
11186 * Mounts this component and inserts it into the DOM.

Callers 1

react.jsFile · 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…