Socket
Socket
Sign inDemoInstall

react-js-data-tree-01

Package Overview
Dependencies
3
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-js-data-tree-01

show json data or array data in box tree form


Version published
Weekly downloads
14
increased by75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

React Js Data Tree

use this to create your own tree in your browser.

npm install react-js-data-tree-01

Screenshot from 2022-08-12 11-18-50

Requirements

let data = {
  "id": "0001",
  "type": "data tree",
  "name": "user",
  "child Data": {
    "array": [
      { "id": "1", "type": "new" },
      { "id": "2", "type": "new 1" },
      { "id": "3", "type": "new 2" },
      { "id": "4", "type": "new 3" }
    ]
  },
  "else arr": [
    { "id": "10001", "type": "None" },
    { "id": "10002", "type": "asdf" },
    { "id": "10005", "type": "adsfd" },
    { "id": "10007", "type": "ads" },
    { "id": "10006", "type": "d gdg " },
    { "id": "10003", "type": "d fdsf ds" },
    { "id": "10004", "type": "aaa" }
  ]
}
<Tree data={data} />

extra props

<Tree data={data} heading="Tree Heading" />

heading Use : show table Heading

treeStyle use : style the main tree div or box

boxStyle use : style tha square box

extra props : treeStyle, boxStyle, heading

Keywords

FAQs

Last updated on 13 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc