- 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 ModalbasedState-Managementjust using theReact-Ref Bases Context. Event-Delegationmodal of managing the all of click handling of tree-node for less memory usage.CRUDoperations.React-Portalto render the inputs at particularfocused nodefor updating and creating thenodeorfilename- Delete focused node with
Deletekey 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 pnpmInstall All of the dependencies
pnpm installStart Development Server
pnpm devThat's it, open up the browser and type http://localhost:5173/react-ts-file-tree/ in the url.