Chapter quiz · Mutations & Forms

Test what you learned.

8 questions on Mutations & Forms. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Mutations & Forms — Chapter Quiz

Eight questions on Server Actions, form state, validation, and revalidation.

0/ 9
  1. Question 1
    1

    What does 'use server' at the top of a file mean?

  2. Question 2
    2

    How do you invoke a Server Action from a form without JavaScript on the page?

  3. Question 3
    3

    What does useActionState give you?

  4. Question 4
    4

    useFormStatus must be called from a component nested inside the <form>.

  5. Question 5
    5

    Why is Zod a common partner for Server Actions?

  6. Question 6
    6

    After a successful mutation, which call updates the cache for the affected page?

  7. Question 7
    7

    The hook for optimistic updates is useO_________.

  8. Question 8
    8

    Which of these can a Server Action do?

    Select all that apply.

Pick an answer — instant feedback as you go.