Next.js Modal Form w/ React-Hook-Form, ShadCN/ui Dialog, Server Actions & Validation
Dave Gray
@davegrayteachescodeAbout
Web Development tutorials with full courses on HTML, CSS, JavaScript, React, Node.js and more! My goal is to help you learn how to build the web. Teaching helps me learn, too. I work full-time as a Solutions Architect / Developer and part-time as a university web dev instructor. Thank you for subscribing, supporting my channel and sharing the videos you think may help others. Keep striving for progress over perfection. And a little progress every day goes a very long way. Milestones: July 20, 2020 - 1st video Jan 1, 2021 - 1k subs April 2021 - 4k watch hours Nov 2021 - 10k subs Jan 21, 2022 - Video at 100k views Feb 16, 2022 - 100k watch hours Feb 19, 2022 - 1m views Dec 13, 2022 - 100k subs Dec 2022 - Over 1m views in 1 month April 7, 2023 - 10m views May 26, 2023 - 1m watch hours Sept 22, 2023 - Video at 1m views Dec 25, 2023 - 250k subs
Latest Posts
Video Description
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap Learn how to build a Next.js Modal Form with React-Hook-Form, ShadCN/ui Dialog, Server Actions & Validation, TailwindCSS, TypeScript and more. Creating a modal form that launches from a table of results is a common use case in business applications. In this NextJS tutorial, you will learn how. 🙏 Thank you to daily.dev for sponsoring this video! Stay up to date with their amazingly free curated web development platform: https://daily.dev/dave-gray 💖 Support me on Patreon ➜ https://patreon.com/davegray 🙌 Bonus: Supporting Patreon members get the source code for my "Input With Datepicker" component that works with this Modal Form tutorial: https://www.patreon.com/posts/patron-exclusive-106135808 ⭐ Become a full-stack web dev with Zero To Mastery Courses: - Complete Next.js Developer: https://bit.ly/CompNextJSDev - Advanced React: https://bit.ly/AdvReactDev - Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr 🚩 Subscribe ➜ https://bit.ly/3nGHmNn 📬 Course Updates ➜ https://courses.davegray.codes/ ❓ Questions - Please post them to my Discord ➜ https://discord.gg/neKghyefqh ☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray 🔗 Source Code Example: https://github.com/gitdagray/nextjs-form-modal 🔗 My Next.js Videos: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Pk-QJIdGd1tGZEzy9RTgtj 👇 Follow Me On Social Media: GitHub: https://github.com/gitdagray Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ Next.js Modal Form w/ React-Hook-Form, ShadCN/ui Dialog, Server Actions & Validation (00:00) Intro (00:17) Welcome (00:26) What's Your Story? (01:41) Next.js Modal with a Form (02:09) Prerequisites (02:35) Project Dependencies (06:09) Example App (11:56) App Components & Routing (15:45) Fetching Type-Safe Data with zod-fetch (17:39) Form Component with react-hook-form (19:30) Save Alert Confirmation Pop-up (21:35) Applying & Viewing the Modal (23:45) onSubmit Function (25:42) Next.js Server Action w/ Zod Validation (27:32) Rendering the Form with Server Action Responses 📺 Video References: 🔗 Next.js Parallel Routes: https://youtu.be/M836RZxReHU 🔗 Next.js Intercepting Routes & Modal: https://youtu.be/Ft2qs7tOW1k 🔗 Getting Started with ShadCN/ui: https://youtu.be/v0_AT8zaLo8 🔗 TypeScript Course: https://youtu.be/gieEQFIfgYc 📚 Tutorial References: 🔗 Next.js: https://nextjs.org 🔗 Next.js Parallel Routes: https://nextjs.org/docs/app/building-your-application/routing/parallel-routes 🔗 Next.js Intercepting Routes: https://nextjs.org/docs/app/building-your-application/routing/intercepting-routes 🔗 shadcn/ui: https://ui.shadcn.com/ 🔗 shadcn/ui Dialog component: https://ui.shadcn.com/docs/components/dialog 🔗 react-hook-form: https://react-hook-form.com/ 🔗 Zod: https://zod.dev/ 🔗 zod-fetch: https://www.npmjs.com/package/zod-fetch 🔗 @hookform/resolvers: https://www.npmjs.com/package/@hookform/resolvers Was this tutorial about Next.js Modal Forms including react-hook-form, ShadCN/ui, Server Actions and Zod Validation helpful? If so, please share. Let me know your thoughts in the comments. #nextjs #modal #form
Essential Bathroom Upgrade Kit
AI-recommended products based on this video

King Size Bed Frame, 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

Queen Bed Frame, Leather Upholstered Headboard with LED Lights and Charging Station, Heavy Duty Wood Slats No Box Spring Needed - Easy Assembly and Noise Free

Floating Bed Frame Queen Size, Queen Bed Frame with Smart LED Lights, Heavy Duty Modern Metal Platform Bed No Box Spring Needed - Easy Assembly and Noise Free

Queen Bed Frame 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

Exfoliating Shower Towel,【2Pack】 Exfoliating Antibacterial Shower Towel, For Use in Shower Bath, Exfoliate Rags Wash Cloths, Loofah Lufa Sponge, Body Scrub, Women Men (2pcs Grid Black)

Asus ROG Delta II Wireless Gaming Headset with Detachable Mic – Tri-Mode (BT, 2.4GHz, 3.5mm), 50mm Titanium-Plated Drivers, 110Hr Battery, Lightweight, for PC, PS5, PS4, Xbox, Switch, Mobile - Black




















