- File-Tree Built in React-TypeScript and TailwindCSS.
- Type safe components.
- Reusable components for ui.
- Reusable custom hooks for event-handling.
- Very optimized rendering for performance of File-Tree's list with
Pub-Sub Modal
basedState-Management
just using theReact-Ref Bases Context
. Event-Delegation
modal of managing the all of click handling of tree-node for less memory usage.CRUD
operations.React-Portal
to render the inputs at particularfocused node
for updating and creating thenode
orfilename
- Delete focused node with
Delete
key from keyboard. - Context Menu for managing all of the file operations like rename, delete, new file and new folder etc.
- Validations for empty value or duplicate entry while creating or updating the node name.
- Collapse/Expand feature for folders
demo.mp4
Install pnpm
npm i -g pnpm
Install All of the dependencies
pnpm install
Start Development Server
pnpm dev
That's it, open up the browser and type http://localhost:5173/react-ts-file-tree/
in the url.