useActionState - NEW in React 19 / Next.js 15 - Critical Hook for Server Actions

ByteGrad June 20, 2024
Video Thumbnail
ByteGrad Logo

ByteGrad

@bytegrad

About

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). My COMPLETE React & Next.js course is out now! Find it here: https://bytegrad.com/courses/professional-react-nextjs It's the #1 resource to master the latest React & Next.js. I'm very proud of it, my best work! Interested in sponsoring me? I love working with sponsors. Please email me here: [email protected] Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 and KRS-number: 0001125554

Video Description

👉 Check out Semaphor: https://semaphor.cloud (paid sponsorship) Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product. 👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). 👉 Check out Kinde for auth and more https://bit.ly/3QOe1Bh 👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs 👉 Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript 👉 Professional CSS Course: https://bytegrad.com/courses/professional-css 👉 Web development roadmap 2024 & 2025: https://email.bytegrad.com 👉 Email newsletter (BIG update soon): https://email.bytegrad.com 👉 Discord: all my courses have a private Discord ⏱️ Timestamps: 00:00 useActionState quick overview 01:46 Sponsor (Semaphor) 04:27 Server actions explanation 08:08 useActionState with form 11:00 useActionState outside form 14:01 "previousState" parameter 16:39 Recap #webdevelopment #reactjs #nextjs Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 . . TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)

Flooring Essentials for Your Home

AI-recommended products based on this video

Loading...
Fungal Nail Treatment Liquid, Nail Fungus Treatment for Toenails, Toenail Fungus Treatment, Toe Nail Fungus Treatment, Toe Fungus Treatment Extra Strength, Fungus Nail Killer, Nail Antifungal, Fungal Nail Treatment for Fingernails - 30ML

Fungal Nail Treatment Liquid, Nail Fungus Treatment for Toenails, Toenail Fungus Treatment, Toe Nail Fungus Treatment, Toe Fungus Treatment Extra Strength, Fungus Nail Killer, Nail Antifungal, Fungal Nail Treatment for Fingernails - 30ML

(4)
$19.99
FREE delivery Thu, Sep 11 on your first order
Loading...
AlloyMove Cordless Vacuum Cleaner, 550W 50KPA 70Mins Powerful Vacuum Cleaners for Home, with Anti-Tangle, LED Display Screen, Self-Standing Stick Vacuum for Hardwood Floors/Pet Hair/Carpet, A01

AlloyMove Cordless Vacuum Cleaner, 550W 50KPA 70Mins Powerful Vacuum Cleaners for Home, with Anti-Tangle, LED Display Screen, Self-Standing Stick Vacuum for Hardwood Floors/Pet Hair/Carpet, A01

(73)
$129.99
FREE delivery Fri, Feb 27
Loading...
Trucozie Cordless Vacuum Cleaner, Powerful 8 in 1 Lightweight Vacuum Cleaners with Max 45mins, LED Display, 2 HEPA, Stick Vacuums Cordless for Hardwood, Carpets, Tile, Pet Hair, Black

Trucozie Cordless Vacuum Cleaner, Powerful 8 in 1 Lightweight Vacuum Cleaners with Max 45mins, LED Display, 2 HEPA, Stick Vacuums Cordless for Hardwood, Carpets, Tile, Pet Hair, Black

(266)
$149.99
FREE delivery Sat, Nov 22
600+ bought in past month
Loading...
PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

(21)
$149.99
FREE deliveryOnly 1 left in stock.
400+ bought in past month
Loading...
PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

(21)
$149.99
FREE deliveryOnly 1 left in stock.
400+ bought in past month
Loading...
PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

(21)
$149.99
FREE deliveryOnly 1 left in stock.
400+ bought in past month
Loading...
PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

PRETTYCARELIFE Cordless Vacuum Cleaner, 40KPA Powerful Cordless Vacuums with LED Indicator, Self-Standing Lightweight Brushless Vacuum Cleaners for Hardwood Floor Carpet Pet Hair, P4

(21)
$149.99
FREE deliveryOnly 1 left in stock.
400+ bought in past month