JSON To App
A tool for converting json to react app.
Usage
const json = {
component: "component-name",
props: { prop1: 1 },
children: [
{
component: "child-component-name",
props: { prop1: 1 },
},
],
};
JSONToApp(json, React.createElement, (name) => name);