Question · Next.js course · Module 4: Databases and Data Fetching

Directive in error.js

What directive must the error.js file contain in Next.js App Router?

Answer options

  • 'use server'
  • 'use strict'
  • 'use client'
  • 'use error'

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