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

Function Parent

__tests__/converter.js:124–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123 it('accepts a stateless function as type', () => {
124 const Parent = () => <Child text="from parent" />
125 expect(
126 convertToObject({
127 type: Parent,
128 props: {},
129 }),
130 ).toEqual({
131 type: 'Child',
132 props: {
133 text: 'from parent',
134 },
135 })
136 })
137
138 it('supports iterating over children', () => {

Callers

nothing calls this directly

Calls 1

convertToObjectFunction · 0.90

Tested by

no test coverage detected