Skip to content

frontend-collective/react-sortable-tree

Repository files navigation

React Sortable Tree

Note: This is a work in progress; most of the features are not yet implemented.

DEMO

Features

  • Works right out of the box, but is highly customizable
  • No external CSS files

Example

import React from 'react';
import ReactSortableTree from 'react-sortable-tree';

export default React.createClass({
    render() {
        return (
            <ReactSortableTree myName="World" />
        );
    }
});

Options

Property Type Default Required Description
myName string World Name of person/thing to greet.

Contributing

After cloning the repository and running npm install inside, you can use the following commands to develop and build the project.

# Starts a webpack dev server that hosts a demo page with the component.
# It uses react-hot-loader so changes are reflected on save.
npm start

# Lints the code with eslint and my custom rules.
npm run lint

# Lints and builds the code, placing the result in the dist directory.
# This build is necessary to reflect changes if you're 
#  `npm link`-ed to this repository from another local project.
npm run build

Pull requests are welcome!

License

MIT