Click in order · Next.js course · Module 1: Next.js Configuration

Syntax of the 'use client' Directive

Arrange the syntax for declaring a Client Component in Next.js

Items to click

  • 'use client'
  • export default
  • Page()
  • { }
  • ;
  • function
Show the answer

Correct order:

  1. 'use client'
  2. ;
  3. export default
  4. function
  5. Page()
  6. { }