You’ll build reusable form inputs and a task form with client-side validation using React Hook Form and Zod. Then you’ll create a “New Task” page to POST data to the backend and show toasts + redirect on success.
Overview
Syllabus
- Unit 1: Reusable Forms and Validation
- Exploring the Task Creation Form
- Defining the Zod Validation Schema
- Using the Reusable Input Component
- Building the Reusable Input Component
- Unit 2: UX Utilities and API Client
- Exploring Toast Notifications and the Mock API Page
- Adding a Mock Route and Toast Provider
- Simulating API Requests and Toast Feedback
- Creating the Toast Context and Hook
- Building the Reusable API Client
- Unit 3: New Task Page UI
- Exploring the New Task Creation and Global UI States
- Implementing Global Loading and Error UI
- Simulating Client-Side Loading and Error States
- Implementing Task Creation Logic with Toasts and Navigation