Tag: Server Functions
All the articles with the tag "Server Functions".
Experimenting with RSCs for Performance and UX in Next.js
Published:A few Server Component patterns from a small app on the Next.js 16.3 preview: a load more button that leans on the URL, a search field that keeps focus while results stream, and a message composer that previews your draft on the server.
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.