Question · JavaScript and React course · Module 10: React Ecosystem and Future

The 'use client' Directive

What does the 'use client' directive at the beginning of a component file mean?

Answer options

  • The component is client-side - it can use hooks, events, and state
  • The component is only available in development mode
  • The component will be automatically cached
  • The component will be rendered exclusively on the server side

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