Skip to content

Web application creating a hierarchy table from given input data. It is built with ReactJS + Vite, TypeScript and Tailwind.

Notifications You must be signed in to change notification settings

radomila/hierarchy-table

Repository files navigation

Hierarchy Table

Hierarchy Table is a component that displays a table of nested data. It uses recursion to render each level of the hierarchy, allowing parent rows to expand and display their child elements. Each row can be deleted individually, including all of its nested child rows.

Technology Stack

  • ReactJS + Vite
  • TypeScript
  • Tailwind v4

Project Structure

  • public - folder containing JSON file with example data
  • src - the main folder with application code
    • assets - folder containing icons
    • components - components, mainly Table
    • hooks - folder with custom hooks, mainly for fetching data
    • styles - folder with theme.css file containing color variables definitions
    • utils - folder containing helper functions

Running the Project

  • Clone the repository with git clone
  • Navigate to the root folder and install dependencies with npm install
  • Run the development server with npm run dev
  • Open the browser and navigate to the http://localhost:5173/

Possible Improvements

  • Loading - add a loading indicator component to improve user experience during data fetching
  • Error handling - implement an error handling component to clearly inform users about any issues or failures during table rendering or data operations
  • Rows deletion - Since individual rows (along with their nested children) can be deleted, it would be beneficial to implement more robust logic for safely removing records from the underlying data structure

About

Web application creating a hierarchy table from given input data. It is built with ReactJS + Vite, TypeScript and Tailwind.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published