MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / internalGetID

Function internalGetID

examples/simple/react.js:10723–10728  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

10721}
10722
10723function internalGetID(node) {
10724 // If node is something like a window, document, or text node, none of
10725 // which support attributes or a .getAttribute method, gracefully return
10726 // the empty string, as if the attribute were missing.
10727 return node && node.getAttribute && node.getAttribute(ATTR_NAME) || '';
10728}
10729
10730/**
10731 * Sets the React-specific ID of the given node.

Callers 5

getIDFunction · 0.85
setIDFunction · 0.85
isValidFunction · 0.85
findFirstReactDOMImplFunction · 0.85
react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected