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

Method addChild

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

Source from the content-addressed store, hash-verified

1114 this.scopeRef = props.scopeRef;
1115 }
1116 addChild(node: TreeNode): void {
1117 this.children.add(node);
1118 node.parent = this;
1119 }
1120 removeChild(node: TreeNode): void {
1121 this.children.delete(node);
1122 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