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 user settings page in React with TypeScript. The page loads the user's current settings from GET /api/settings and displays them in an editable form. The form includes fields for display name, email, notification preferences (checkboxes for email notifications and push notifications), and timezone (dropdown).
When the user clicks "Save Changes", the form submits the updated settings via PATCH /api/settings.
Produce TypeScript/TSX files in a src/ directory:
src/api.ts -- API client for making requestssrc/types.ts -- TypeScript type definitionssrc/components/SettingsForm.tsx -- the main settings form componentsrc/App.tsx -- app root that renders the settings pageDo not include test files or build configuration.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
frontend-error-handling
verifiers