MCPcopy Create free account
hub / github.com/adobe/react-spectrum / text

Function text

packages/dev/s2-docs/src/Code.tsx:423–429  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

421}
422
423function text(node) {
424 if (node.type === 'text') {
425 return node.value;
426 } else {
427 return node.children.map(c => text(c)).join('');
428 }
429}
430
431function highlightDiff(code: string) {
432 let lines = code.split('\n');

Callers 4

Code.tsxFile · 0.70
linesFunction · 0.70
renderHastFunction · 0.70
AvatarGroup.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected