useActionState in React 19 ft Sam Selikoff

preview_player
Показать описание
In this video, we'll talk about actions, transitions, and the new useActionState hook in React 19 with Sam Selikoff from BuildUI.

👉🏼 Build UI

👉🏼 Advanced React component patterns course
→ Advanced React Component Patterns

👉🏼 Sam's Youtube channel

👉🏼 Frontend first podcast

👉🏼 The ultimate NextJs course

👉🏼 Let's talk
Рекомендации по теме
Комментарии
Автор

By the way. One really important thing is that a server action in the end is an api endpoint which is unsafe. So whenever you use a server action it should be checked whether the user is authorized to perform the action.

LehmannMr
Автор

Thank you for being such an amazing teacher 🙏

MiladJoodi
Автор

Kept it super simple and understandable. I now get it! Thanks.

nixonmbeki
Автор

This was great, I always found it hard to wrap my head around the useTransition hook in a standard client side app with React Query powering most of it, but the useOptimistic and useActionState hooks seem to be great patterns. Can't wait to see how form libraries leverage this

abdulmustapha
Автор

I just found next-safe-action which seems to take this concept even a step further.

LehmannMr