Back to home

Server Actions

Server Actions are async functions that run on the server. They can be used in forms and called directly from client components.

Server Actions + useActionState
Form submissions are handled by a server action. The useActionState hook manages pending state and the response.

How it works