MCPcopy Create free account
hub / github.com/microsoft/SandDance / getHostProps$1

Function getHostProps$1

docs/external/js/react-dom.development.js:2253–2265  ·  view source on GitHub ↗
(element, props)

Source from the content-addressed store, hash-verified

2251 }
2252 }
2253 function getHostProps$1(element, props) {
2254 var hostProps = _assign({
2255 children: undefined
2256 }, props);
2257
2258 var content = flattenChildren(props.children);
2259
2260 if (content) {
2261 hostProps.children = content;
2262 }
2263
2264 return hostProps;
2265 }
2266
2267 var didWarnValueDefaultValue$1;
2268

Callers 2

setInitialPropertiesFunction · 0.85
diffPropertiesFunction · 0.85

Calls 1

flattenChildrenFunction · 0.85

Tested by

no test coverage detected