Question · JavaScript and React course · Module 9: Modern React Hooks

Server Actions - directive

Which directive marks a function as a Server Action in React 19?

Answer options

  • 'use client'
  • 'use server'
  • 'server action'
  • 'use action'

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