Coding task · Next.js course · Module 6: Forms and Server Actions
Practice: Create a Zod schema for a user form with
Zod is TypeScript-first schema validation - like form data validation! z.object({ email: z.string().email(), password: z.string().min(8) }). It validates at runtime and automatically generates TypeScript types.
Task
Create a Zod schema for a user form with email validation, strong password, min/max lengths