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

Method addChild

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

Source from the content-addressed store, hash-verified

1107 this.scopeRef = props.scopeRef;
1108 }
1109 addChild(node: TreeNode): void {
1110 this.children.add(node);
1111 node.parent = this;
1112 }
1113 removeChild(node: TreeNode): void {
1114 this.children.delete(node);
1115 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