Proactively choose the right state management pattern: derived state, URL state, server state, local state, lifted state, Context, or external store. Always apply without being asked.
84
76%
Does it follow best practices?
Impact
97%
1.16xAverage score across 5 eval scenarios
Passed
No known issues
Build a multi-step registration form in React with TypeScript. The form collects user information across 4 steps, then shows a summary for confirmation before submitting.
Step 1 -- Personal Info:
Step 2 -- Contact Info:
Step 3 -- Account Setup:
Step 4 -- Professional Info:
Step 5 -- Review & Submit:
/api/registerNavigation:
Produce TypeScript/TSX files in a src/ directory:
src/types.ts -- TypeScript type definitionssrc/components/RegistrationWizard.tsx -- the main wizard component managing stepssrc/components/StepPersonalInfo.tsx -- step 1 formsrc/components/StepContactInfo.tsx -- step 2 formsrc/components/StepAccountSetup.tsx -- step 3 formsrc/components/StepProfessionalInfo.tsx -- step 4 formsrc/components/ReviewStep.tsx -- step 5 summary and submitsrc/components/ProgressBar.tsx -- the step progress indicatorsrc/App.tsx -- the app entry pointThe code does not need to run against a real server. Do not include test files or build configuration.