Question · Next.js course · Module 6: Forms and Server Actions

The useActionState hook in React is used for:

The useActionState hook (formerly useFormState) in React is used for:

Answer options

  • Database connections
  • Managing form state with Server Actions
  • CSS styling forms
  • Image uploading

You can check the correct answer by solving this task in the CodeWorlds game.