QuizNot attempted
Server Action benefits
1–4 to choose, Enter to submit
Show answer & explanation
Correct answers:
- Progressive enhancement:
<form action={action}>works before JS loads - No manual fetch/endpoint code
- Built-in integration with
revalidatePath/revalidateTag
- Server Actions give progressive enhancement (
<form action={action}>posts before JS loads), remove hand-written fetch/endpoint code, and integrate withrevalidatePath/revalidateTagto refresh cached data after a mutation. - Not 'no auth checks needed': an action is a public POST endpoint under the hood, so anyone can call it with crafted input
- authenticate, authorize and validate inside every action.