Question · Next.js course · Module 1: Next.js Configuration

The 'use client' Directive in Next.js

What does the 'use client' directive at the beginning of a file mean in Next.js?

Answer options

  • It imports the Next.js client library
  • It enables client-side debugging mode
  • It marks the file as a Client Component rendered in the browser
  • It forces static rendering of the page
Show the answer

Correct answer:

  • It marks the file as a Client Component rendered in the browser