Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Toyurc/thrive-test

Repository files navigation

Thrive My Career Test

A performant React + TypeScript app demonstrating virtualized, sortable, and draggable user tables using TanStack Table and TanStack Virtual. User data is generated with faker.js and cached in localStorage.

Features

  • Virtualized Table: Efficiently renders large datasets (500+ users) with smooth scrolling.
  • Column Sorting: Click headers to sort by any column.
  • Column Reordering: Drag and drop headers to reorder columns.
  • Custom Table Example: Includes a second table implementation for comparison.
  • Persistent Data: User data is cached in localStorage for fast reloads.

Project Structure

src/
  App.tsx                # Main app, renders both tables
  components/
    DataTable.tsx        # TanStack Table implementation
    CustomTable.tsx      # Custom table wrapper
    CustomDataTable.tsx  # Custom virtualized table implementation
  hooks/
    getUser.ts           # User data fetching and caching
    useVirtualization.ts # Custom virtualization logic
  utils/
    column.tsx           # Column definitions for TanStack Table
    faker.ts             # User data generation
  types.ts               # User type definition

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • npm

Install dependencies

npm install

Run in development

npm run dev

Open http://localhost:5173 to view the app.

Key Files

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published