Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Next.js Modal Form with React-Hook-Form, ShadCN/UI Dialog, and Server Actions - Tutorial

Dave Gray via YouTube

Overview

Learn how to build a Next.js Modal Form with React-Hook-Form, ShadCN/ui Dialog, Server Actions, and Validation in this comprehensive tutorial. Explore the process of creating a modal form that launches from a table of results, a common use case in business applications. Dive into key concepts including TypeScript integration, TailwindCSS styling, and leveraging Next.js features. Follow along to implement type-safe data fetching with zod-fetch, construct form components using react-hook-form, and create server actions with Zod validation. Gain practical experience in applying and rendering modals, handling form submissions, and integrating confirmation pop-ups. Perfect for developers looking to enhance their Next.js and React skills with real-world application development.

Syllabus

Intro
Welcome
What's Your Story?
Next.js Modal with a Form
Prerequisites
Project Dependencies
Example App
App Components & Routing
Fetching Type-Safe Data with zod-fetch
Form Component with react-hook-form
Save Alert Confirmation Pop-up
Applying & Viewing the Modal
onSubmit Function
Next.js Server Action w/ Zod Validation
Rendering the Form with Server Action Responses

Taught by

Dave Gray

Reviews

Start your review of Next.js Modal Form with React-Hook-Form, ShadCN/UI Dialog, and Server Actions - Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.