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

Function singleRender

app/src/static/js/react-bootstrap.js:6757–6765  ·  view source on GitHub ↗
(props, ref)

Source from the content-addressed store, hash-verified

6755 var SingleConsumer = ensureConsumer(consumers[0]);
6756
6757 function singleRender(props, ref) {
6758 var _extends2;
6759
6760 var propsWithRef = _extends((_extends2 = {}, _extends2[forwardRefAs] = ref, _extends2), props);
6761
6762 return _react.default.createElement(SingleConsumer, null, function (value) {
6763 return _react.default.createElement(Component, _extends({}, propsWithRef, mapToProps(value, props)));
6764 });
6765 }
6766
6767 function multiRender(props, ref) {
6768 var _extends3;

Callers

nothing calls this directly

Calls 1

_extendsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…