MCPcopy Create free account
hub / github.com/adobe/react-spectrum / addChild

Method addChild

packages/react-aria/src/focus/FocusScope.tsx:1111–1114  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

1109 this.scopeRef = props.scopeRef;
1110 }
1111 addChild(node: TreeNode): void {
1112 this.children.add(node);
1113 node.parent = this;
1114 }
1115 removeChild(node: TreeNode): void {
1116 this.children.delete(node);
1117 node.parent = undefined;

Callers 3

FocusScopeFunction · 0.80
addTreeNodeMethod · 0.80
removeTreeNodeMethod · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected