Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Next.js
Next.jseasy

What does the `'use client'` directive do?

Tags
#use-client#client-component#react
Back to categoryPractice quiz

Answer

It marks a file as a Client Component boundary. The component (and its dependencies) are bundled for the browser, so you can use hooks and event handlers there.

Related questions

Next.js
Theme toggle hydration mismatch: what causes it and how do you avoid it?
#nextjs#react#hydration
Next.js
What are `useSearchParams()` and `useParams()` used for (and where can you use them)?
#params#search-params#hooks
Next.js
What causes a hydration mismatch in React/Next.js and how do you fix it?
#hydration#ssr#react
Next.js
Next.js App Router: Server Component vs Client Component — what’s the difference?
#nextjs#app-router#rsc