Tree-Pane component built with React
Check out the demo
npm install react-tree-pane
var model = {
name: 'Default',
children: [
{ name: 'react-tree-pane', children:[
{name: 'demo', children: [
{name: 'bundle.js'},
{name: 'Example.js'}
]},
{name: 'src', children: [
{name: 'TreePane.js'}
]},
{name: 'test', children: [
{name: 'TreePane-test.js'}
]},
{name: 'package.json'}
]}
]
};
var Example = React.createClass({
render: function() {
return <TreePane model={model} />
}
});
React.render(<Example />, document.body);