a customization-friendly JavaScript object tree inspector built for React
npm install --save react-treeify
import ObjectTree from 'react-treeify'
import 'react-treeify/src/styles/index.scss'
import 'react-treeify/dist/styles/index.css'
@import '~react-treeify/src/styles/index'
wrapper: 'my-wrapper-class', // div wrapping the entire component
branch: 'my-branch-class and-second-class', // div wrapping each branch in the tree
expander: 'my-expander-class', // anchor warpping the expander, for an array or object
branches: 'my-branches-class', // div wrapping object/array sub-branches
peak: 'my-peak-class', // div, top-level branch
prop: 'my-prop-class', // span with the prop name of an obj (or index of array)
leaf: 'my-leaf-class', // span wrapping the value of a leaf on the branch (endpoint of a branch)
booleanLeaf: 'my-boolean-leaf-class', // span wrapping boolean endpoint of a branch
dateLeaf: 'my-date-leaf-class', // span wrapping date object' string rep at the endpoint of a branch
functionLeaf: 'my-function-leaf-class', // span wrapping function endpoint of a branch
infinityLeaf: 'my-infinity-leaf-class', // span wrapping infinity-value endpoint of a branch
nanLeaf: 'my-nan-leaf-class', // span wrapping NaN endpoint of a branch
nullLeaf: 'my-null-leaf-class', // span wrapping null endpoint of a branch
numberLeaf: 'my-number-leaf-class', // span wrapping number endpoint of a branch
stringLeaf: 'my-string-leaf-class', // span wrapping string endpoint of a branch
undefinedLeaf: 'my-undefined-leaf-class' // span wrapping undefined endpoint of a branch
}} />
``