In this video, we'll learn how to use the new server actions in NextJs 13 by building a Guestbook page on our site. We'll also look at error handling and data validation using Zod.
👉🏼 The Ultimate NextJs Course
🔗 www.hamedbahram.io/courses/ne...
👉🏼 Project code (check out the `server-actions` branch)
🔗 github.com/HamedBahram/nextjs...
Chapters:
0:00 Intro
0:30 Definition
2:35 Creation
8:46 Invocation
13:35 Progressive Enhancement
14:46 Revalidation
15:00 Validation
16:00 Using cookies & headers
16:15 Other enhancements
17:00 Glossary
17:36 Project setup
20:35 Refactoring to use server actions
27:30 Error handling
30:40 Data validation with ZOD
39:36 Outro
Негізгі бет The Ultimate Guide to Server Actions in NextJs 13 with Error Handling & Validation Using Zod
Пікірлер: 78