json-component-renderer
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

json-component-renderer

json-component-renderer is a function helper that traverse the json data, calling the customized transformations function callback. It is useful to render a DOM tree based on the json data structure.

The json data structure interface is:

interface JsonComponent {
  component: string;
  props?: JsonComponentProps;
  children?: string | (string | JsonComponent)[];
}

Installation:

npm i json-component-renderer

or

yarn add json-component-renderer

Readme

Keywords

none

Package Sidebar

Install

npm i json-component-renderer

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.31 kB

Total Files

15

Last publish

Collaborators

  • joaoneto