Question · Next.js course · Module 2: Routing and Layouts

Creating a Client Component

To create a Client Component, you need to add:

Answer options

  • 'use server' at the top of the file
  • A special configuration
  • export client at the end of the file
  • 'use client' at the top of the file
Show the answer

Correct answer:

  • 'use client' at the top of the file