Recommended Libraries
Build from proven libraries instead of evaluating every category from scratch.
State Management
- Zustand - lightweight client state management
- TanStack Query - async/server state and caching
Validation
- Zod - good default, with strong ecosystem integrations
- Typebox - use when validation/runtime performance is key
- Valibot - strong frontend choice when bundle size is constrained
All three support the Standard Schema spec.
Styling
- Tailwind CSS - utility-first styling baseline
- clsx - conditional class composition
- tailwind-merge - Tailwind class conflict resolution
- class-variance-authority - component variant API
UI Components and Primitives
- Base UI - preferred modern alternative to Radix-style primitives
- shadcn/ui - copy/paste components bult on top of Radix/BaseUI with Tailwind
- Radix UI - accessible low-level primitives (legacy/compatible option)
- React Aria Components - when accisibility is top priority
Forms
- React Hook Form - performant form state and validation integration
Networking and API Mocks
- Axios - HTTP client with request/response interceptors
- Ky - smaller fetch-based HTTP client alternative
- Mock Service Worker - API mocking in development and tests
Testing
- Vitest - unit/integration test runner
- Playwright - end-to-end browser testing
Dates and Time Zones
- date-fns - date utilities with modular imports
- date-fns-tz - timezone-aware date handling