Uploaded August 2023 | Updated December 2026, 3 hours ago
In this video, we'll look at implementing forms in NextJs using the React-hook-form library, we'll then add validation using Zod, and at the end, we'll replace our API endpoint with server action.
ππΌ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
ππΌ Project source code (Github)
π github.com/HamedBahram/next-rhf
ππΌ React hook form
π react-hook-form.com
Chapters
0:00 Intro
0:40 Project code setup
1:30 Adding a simple form
5:00 Adding React hook form
13:30 Adding Zod validation
19:00 Using server actions
25:18 Outro
In this video, we'll look at implementing forms in NextJs using the React-hook-form library, we'll then add validation using Zod, and at the end, we'll replace our API endpoint with server action.
ππΌ The Ultimate NextJs Course
π hamedbahram.io/courses/nextjs
ππΌ Project source code (Github)
π github.com/HamedBahram/next-rhf
ππΌ React hook form
π react-hook-form.com
Chapters
0:00 Intro
0:40 Project code setup
1:30 Adding a simple form
5:00 Adding React hook form
13:30 Adding Zod validation
19:00 Using server actions
25:18 Outro










