MCPcopy Create free account
hub / github.com/MainframeOS/react-json-renderer / Wrapper

Function Wrapper

__tests__/lib.js:29–41  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

27 </View>
28 )
29 const Wrapper = ({ children }) => <View type="wrapper">{children}</View>
30
31 const json = convertToJSON(
32 <Wrapper>
33 <Header key="header" title="Title" />
34 <View key="contents" type="main">
35 <Text>Contents</Text>
36 </View>
37 </Wrapper>,
38 {
39 space: 2,
40 },
41 )
42
43 const components = {
44 Text: ({ children }) => <span className="text">{children}</span>,

Callers

nothing calls this directly

Calls 1

convertToJSONFunction · 0.90

Tested by

no test coverage detected