MCPcopy Create free account
hub / github.com/bvaughn/react-window / encodeTextChild

Function encodeTextChild

integrations/tests/src/utils/serializer/encode.ts:79–87  ·  view source on GitHub ↗
(element: ReactElement<TextProps>)

Source from the content-addressed store, hash-verified

77}
78
79function encodeTextChild(element: ReactElement<TextProps>): EncodedTextElement {
80 return {
81 props: {
82 children: element.props.children,
83 className: element.props.className
84 },
85 type: "Text"
86 };
87}

Callers 1

encodeChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected