MCPcopy Create free account
hub / github.com/react/react / childrenAsString

Function childrenAsString

packages/react-art/src/ReactARTInternals.js:24–34  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

22};
23
24export function childrenAsString(children) {
25 if (!children) {
26 return '';
27 } else if (typeof children === 'string') {
28 return children;
29 } else if (children.length) {
30 return children.join('');
31 } else {
32 return '';
33 }
34}

Callers 2

tMethod · 0.90
applyShapePropsFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected