mid17 zgłoszeń

Czym są Server Actions w Next.js?

Server Actions to funkcje z 'use server' wywoływane z klientu jak RPC. Zastępują API routes dla mutacji. Automatyczna serializacja, rewalidacja cache. Formularze: action={serverAction}. useFormStatus, useFormState do UI. Progressive enhancement bez JS.

Więcej pytań z Next.js