TypeScript · forms · Zod
Typed handlers for form labs
Anh Phạm ·
We teach schema-first handlers because it mirrors how product teams negotiate API contracts. Students write the parser before the UI so impossible states surface early.
Mobile keyboards hate long error strings. We cap copy at two clauses and mirror the same text server-side for parity.
Labs include a deliberate mismatch exercise: the schema updates mid-week and students must ship a codemod for their components. It mirrors real backlog churn without inventing drama.