carlosvega20 / r-arbol

:herb: ReactJS Json Tree Viewer (54 lines) http://r-arbol.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

r-arbol

npm package

ReactJS Json Tree Viewer (http://r-arbol.surge.sh/)

##Usage npm install r-arbol

then in your code:

import TreeView from "r-arbol"

Based on a Json Object:

var jsonObj = { "id": 1, "name": "Foo", "price": 123, "tags": [ null, undefined, "label", function () {} ], "stock": { "warehouse": 300, "retail": 20, "isDisable": true } }

<TreeView data={jsonObj} />

Skin: Visual elements as '+', '-', '...', etc are separated from the logic and can be edited in CSS styles.

##Roadmap

  • Render Visual Tree
    • Any Javascript Object (json, array, etc)
    • Visual elements are separated from the logic

##TODO

  • Unit test

About

:herb: ReactJS Json Tree Viewer (54 lines) http://r-arbol.surge.sh/

License:Apache License 2.0


Languages

Language:JavaScript 49.1%Language:CSS 26.4%Language:HTML 24.6%