MCPcopy Create free account
hub / github.com/microsoft/SandDance / traverseAllChildren

Function traverseAllChildren

docs/external/js/react.development.js:1173–1179  ·  view source on GitHub ↗

* Traverses children that are typically specified as `props.children`, but * might also be specified through attributes: * * - `traverseAllChildren(this.props.children, ...)` * - `traverseAllChildren(this.props.leftPanelChildren, ...)` * * The `traverseContext` is an optional argum

(children, callback, traverseContext)

Source from the content-addressed store, hash-verified

1171
1172
1173 function traverseAllChildren(children, callback, traverseContext) {
1174 if (children == null) {
1175 return 0;
1176 }
1177
1178 return traverseAllChildrenImpl(children, '', callback, traverseContext);
1179 }
1180 /**
1181 * Generate a key string that identifies a component within a set.
1182 *

Callers 3

forEachChildrenFunction · 0.85
countChildrenFunction · 0.85

Calls 1

traverseAllChildrenImplFunction · 0.85

Tested by

no test coverage detected