react-graph-tree

1.6.0 • Public • Published

react-graph-tree

NPM JavaScript Style Guide

Install

npm install --save react-graph-tree

Usage

import React, { Component } from 'react'
 
import Tree from 'react-graph-tree'
 
class Example extends Component {
  render () {
    const data = {
          'label': 'Top Level',
          'children': [
            {
              'label': 'Level 2: A',
              'children': [
                {
                  'label': 'Son of A'
                },
                {
                  'label': 'Daughter of A'
                }
              ]
            },
            {
              'label': 'Level 2: B'
            }
          ]
        }
    return (
      <Tree data={data} />
    )
  }
}

License

MIT © yershalom

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.6.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.6.01
1.5.00
1.4.00
1.3.00
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i react-graph-tree

Weekly Downloads

1

Version

1.6.0

License

MIT

Unpacked Size

101 kB

Total Files

6

Last publish

Collaborators

  • yershalom