MCPcopy
hub / github.com/facebook/react / containsElement

Method containsElement

packages/react-devtools-shared/src/devtools/store.js:526–528  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

524 }
525
526 containsElement(id: number): boolean {
527 return this._idToElement.has(id);
528 }
529
530 getElementAtIndex(index: number): Element | null {
531 if (index < 0 || index >= this.numElements) {

Callers 3

reduceOwnersStateFunction · 0.80
OwnersStack.jsFile · 0.80

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected