This is a barebone tree application built using React, react hooks and a nested array.
No assistive libraries were used for this project.
- Add sibling and child nodes up to nth level
- Delete subling and child nodes
- Shift nodes up or down
- Drag n Drop new nodes from catalog
- Expand / collapse parent nodes
- Node (Make sure you have the node 12+ installed)
- Clone the repository
gh repo clone hassanamjad91/react-tree
(or if you're not using GitHub CLI:git clone git@github.com:hassanamjad91/react-tree.git
) - If you're using NVM run
nvm use
inside project directory to use node version set in.nvmrc
file - Run
npm install
ornpm i
to install all the dependencies - To begin development task, run
npm start
- Open http://localhost:8080
npm clean
- delete thedist
foldernpm start
- start the dev server and watch for changesnpm run build
- create a production ready build indist
folder