CodeZettaInterview Hub

Next.js · Server Actions · Fresh / Intern · Concept

What are Server Actions?

Short Interview Answer

Async server functions that can be invoked from Client Components/forms, marked with `'use server'`.

Detailed Explanation

They simplify mutations without hand-written API routes for first-party UI. Can be progressive-enhancement friendly with forms. Still require authz and validation.

Did you know this answer?