Tag: Server Actions
All the articles with the tag "Server Actions".
Handling Form Validation Errors and Resets with useActionState()
Published:The React 19 `useActionState` hook is a powerful tool for creating a state based on the result of an action, typically useful with form submissions. Learn how to create a validated form using the hook, and how to handle form resets and errors with it.
Creating a Reusable SubmitButton with useFormStatus()
Published:The React 19 `useFormStatus` hook is a powerful tool for handling form submissions. Learn how to create a reusable SubmitButton that works across multiple forms and enables progressive enhancement.
Rebuilding "Remix Contacts" in Next.js 14 with Transitions, Server Actions and Prisma
Published:Remix Contacts is Remix's official tutorial. In this blog post, we'll rebuild it in Next.js 14 using React Server Components, Server Actions, Transitions and Prisma, and compare the two approaches.