MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getHostProps$1

Function getHostProps$1

code/composition/public/app.js:14598–14607  ·  view source on GitHub ↗
(element, props)

Source from the content-addressed store, hash-verified

14596}
14597
14598function getHostProps$1(element, props) {
14599 var hostProps = _assign({ children: undefined }, props);
14600 var content = flattenChildren(props.children);
14601
14602 if (content) {
14603 hostProps.children = content;
14604 }
14605
14606 return hostProps;
14607}
14608
14609// TODO: direct imports like some-package/src/* are bad. Fix me.
14610var getCurrentFiberOwnerName$3 = ReactDebugCurrentFiber.getCurrentFiberOwnerName;

Callers 2

setInitialProperties$1Function · 0.70
diffProperties$1Function · 0.70

Calls 1

flattenChildrenFunction · 0.70

Tested by

no test coverage detected