Coding task · Next.js course · Module 6: Forms and Server Actions

Practice: Create a form where fields appear

Use watch() from React Hook Form to track changes and conditionally display form fields.

Task

Create a form where fields appear conditionally based on previous selections (e.g., payment method -> different fields)