Uploaded June 2023 | Updated November 2026, 1 day ago
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
π hamedbahram.io/courses/nextjs
ππΌ Project code (check out the `server-actions` branch)
π github.com/HamedBahram/nextjs-course
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
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
π hamedbahram.io/courses/nextjs
ππΌ Project code (check out the `server-actions` branch)
π github.com/HamedBahram/nextjs-course
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

![Read user and session data in NextJs with Clerk [5/6]
Accessing user and session data in NextJs using helper functions and hooks from Clerk.
ππΌ Clerk auth
β https://go.clerk.com/s1mVa9u
ππΌ Learn Clerk
β https://www.hamedbahram.io/courses/clerk Read user and session data in NextJs with Clerk [5/6]](https://i.ytimg.com/vi/tg_Hna4PDLI/mqdefault.jpg)








