Next.js Server Actions Let You Drop API Routes for Simple Forms
By marking a function with "use server" and wiring it to a form’s action attribute, developers can submit data straight to the backend without a fetch call, eliminating separate API route files and reducing client-side code.