In this video, we'll look at implementing forms in NextJs using the Reacthookform 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
https://www.hamedbahram.io/courses/ne...
Project source code (Github)
https://github.com/HamedBahram/nextrhf
React hook form
https://reacthookform.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