Proactive error handling for React and vanilla JS frontends — every data-fetching component gets loading, error, and empty states, error boundaries, fetch error handling, form validation, optimistic rollback
90
84%
Does it follow best practices?
Impact
100%
1.38xAverage score across 5 eval scenarios
Passed
No known issues
Build a product listing page in React with TypeScript. The page fetches products from /api/products and displays them in a responsive grid. Each product card shows the product name, price, image, and a short description.
Users can filter products by category using a dropdown that fetches categories from /api/categories. There is also a "Add to Cart" button on each card that sends a POST to /api/cart/items.
Produce TypeScript/TSX files in a src/ directory:
src/api.ts -- API client for making requestssrc/types.ts -- TypeScript type definitionssrc/components/ProductGrid.tsx -- the main product listing pagesrc/components/ProductCard.tsx -- individual product card componentsrc/components/CategoryFilter.tsx -- category filter dropdownsrc/App.tsx -- app rootDo not include test files or build configuration.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
frontend-error-handling
verifiers