MCPcopy
hub / github.com/react/react / getElementIDAtIndex

Method getElementIDAtIndex

packages/react-devtools-shared/src/devtools/store.js:607–610  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

605 }
606
607 getElementIDAtIndex(index: number): number | null {
608 const element = this.getElementAtIndex(index);
609 return element === null ? null : element.id;
610 }
611
612 getElementByID(id: number): Element | null {
613 const element = this._idToElement.get(id);

Callers 15

store-test.jsFile · 0.80
ChildFunction · 0.80
inspectElementAtIndexFunction · 0.80
ParentFunction · 0.80

Calls 1

getElementAtIndexMethod · 0.95

Tested by 6

ChildFunction · 0.64
inspectElementAtIndexFunction · 0.64
ParentFunction · 0.64
mountTestAppFunction · 0.64
mountTestAppFunction · 0.64