All Projects
Shelf — React Product Catalog
A single-page product catalog built with React and TypeScript: almost two hundred products from a public API, with search, category filters, product pages and a validated review form.
The Challenge
My first complete React and TypeScript project: a product catalog that behaves like a real app, with routing, data loading, search and forms, built without a UI library.
How I Built It
- TypeScript in strict mode with no any; form types are inferred from the Zod schema.
- A reusable, generic useFetch hook that cancels outdated requests.
- A loading, error and empty state for every screen.
- A review form with React Hook Form and Zod: errors appear after a field is touched and invalid fields are marked with aria-invalid.
- Nested routes with React Router and a shared layout, styles in CSS Modules, deployed on Vercel.
Result
Almost two hundred products from the public DummyJSON API, live on Vercel, with the source code on GitHub.
What I Did
- TypeScript in strict mode, form types inferred from the Zod schema01
- Reusable generic useFetch hook that cancels outdated requests02
- Search by name and category filter with an empty state and reset03
- Product pages with image gallery, discount, rating and stock04
- Accessible review form with React Hook Form and Zod05
- Responsive layout in CSS Modules, no UI libraries, deployed on Vercel06
Gallery
6 images
01
02
03
04
05
06