Server Actions in Next.js | Nextjs 13 Server Mutations @DaveGrayTeachesCode
Server Actions in Next.js | Nextjs 13 Server Mutations  @DaveGrayTeachesCode
Uploaded June 2023 | Updated November 2026, 1 day ago
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap

Server Actions in Next.js are a new feature that will let us explore Nextjs Server Mutations with a CRUD app. You will learn different ways to invoke async server actions and use progressively enhanced forms.

πŸ’– Support me on Patreon ➜ patreon.com/davegray

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜ discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ buymeacoffee.com/davegray

πŸ‘‡ Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray

πŸ”— Source Code: github.com/gitdagray/nextjs-server-actions

Server Actions in Next.js | Nextjs 13 Server Mutations

(00:00) Intro
(00:05) Welcome
(00:26) Getting Started
(01:06) What Do Server Actions Provide?
(01:33) Project Setup & Config
(03:54) Server Action with action prop
(05:17) Ways to Invoke a Server Action
(06:16) addTodo Server Action
(08:36) What is Progressive Enhancement?
(09:27) Progressive Enhancement Example
(11:54) Server Action with formAction prop
(15:27) Server Mutations definition
(15:58) deleteTodo & updateTodo Server Actions
(16:43) Server Action with startTransition
(18:38) Server Mutation Navigation Issue
(20:12) Fix for the Navigation Issue
(23:28) useOptimistic for Optimistic Updates

πŸ“š Tutorial References:
πŸ”— Next.js Official Site: nextjs.org
πŸ”— Next.js Docs for Server Actions: nextjs.org/docs/app/building-your-application/data-fetching/server-actions
πŸ”— ES7 React Snippets Extension: marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets

Was this Next.js tutorial about server actions helpful? If so, please share. Let me know your thoughts in the comments.

#nextjs #server #actions
Server Actions in Next.js | Nextjs 13 Server MutationsHow to Use the Next.js blurDataUrl Images Prop with PlaiceholderWhat did Next.js Server Actions actually accomplish? And Other Questions...SIZE MATTERS πŸ‘€ when you Optimize Responsive Images in Next.jsJSNation 2024 - Dont Miss Out!Python Django User Registration - Full TutorialNext.js Project Example with DiscussionNext.js 13 SSG, SSR & ISR | Nextjs 13 tutorialNestJS Fundamentals - Providers tutorialLookup Objects Are Better Conditionals! πŸ†This is Why CSS is so Frustrating! 😭ReactΒ NativeΒ CRUDΒ AppΒ | Build a Complete Project
Dave Gray |

Server Actions in Next.js | Nextjs 13 Server Mutations

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER