Using React Hook Form, Zod Validation and Server Actions in NextJs @hamedbahram
Using React Hook Form, Zod Validation and Server Actions in NextJs  @hamedbahram
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
Using React Hook Form, Zod Validation and Server Actions in NextJsServerless Postgres ft Mahmoud from NeonAdvanced authentication in NextJs using middleware & server actionsThe new `useTransition` hook with 3 example usecasesUsing NextUI Components & Themes in NextJsUnlocking the Power of AI with Vercel SDK ft Nico AlbaneseBuild an ecommerce site using NextJS and SwellTanStack Start: Server Components Without the Mental GymnasticsLoading Skeleton for Search & Pagination in NextJs 13 Movie AppAnimating Background Gradients using Framer MotionTen UI Libraries, Components, and Tools I UseSync Clerk Data to Your Database Using Webhooks
Hamed Bahram |

Using React Hook Form, Zod Validation and Server Actions in NextJs

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER