MCPcopy Create free account
hub / github.com/docker/getting-started / onlyChild

Function onlyChild

app/src/static/js/react-bootstrap.js:8526–8528  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

8524}
8525
8526function onlyChild(children) {
8527 return Array.isArray(children) ? children[0] : children;
8528}
8529
8530function createReactContext(defaultValue, calculateChangedBits) {
8531 var _Provider$childContex, _Consumer$contextType;

Callers 1

createReactContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…