Server Action
Also known as: Server Actions / サーバーアクション
Server-side functions introduced in React 19 and the Next.js App Router. Annotated with 'use server', they can be called directly from client components, enabling form handling and DB operations without defining separate API endpoints.
Overview
Server Actions are invoked via 'form action={myAction}' or 'onClick={() => myAction(data)}'. They execute as POST requests, performing server-side validation and DB operations. Paired with the useActionState hook, loading state and error handling can be implemented concisely.
Integration with RSC
Combining Server Actions with React Server Components enables full-stack implementation with minimal client JavaScript. See Vercel + Next.js 16 complete guide for form implementation best practices.
Related Columns
Feel free to contact us
Contact Us