MENU

Fun & Interesting

React 19: useActionState

Ryan Toronto 1,886 6 months ago
Video Not Working? Fix It Now

In this video, we'll build a form using React's new useActionState hook, introduced in React 19. Along the way, we'll explore other exciting features from React 19, including form actions, server functions, and server components. Learn how these tools make building forms easier than ever! One thing I forgot to mention: useActionState can only be used inside client components. That's why we have a separate registration form component — it's a client component, but I forgot to show/explain that in the video. Black Friday Sale: https://buildui.com - 0:00 - Intro - 0:25 - Actions and server functions - 5:09 - Returning data to the browser - 7:21 - Use action state - 12:21 - Adding feedback to the form - 14:53 - Actions and transitions - 19:48 - Updating existing records - 26:23 - Using cookies - 32:06 - Why do we need a new hook?

Comment