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

Method render

src/renderer.js:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 props: RendererProps
73
74 render() {
75 const { json, tree, ...params } = this.props
76 let obj
77 if (tree) obj = tree
78 else if (json) obj = JSON.parse(json) // flowlint-line sketchy-null-string:off
79
80 return obj ? renderFromObject(obj, params) : null
81 }
82}

Callers

nothing calls this directly

Calls 1

renderFromObjectFunction · 0.85

Tested by

no test coverage detected