Next.js · Junior · Question 70 of 75

Do you need 'use client' at the top of every client component file?

Explanation

'use client' marks the entry point from server to client. Adding it everywhere isn't harmful but makes it harder to see where the boundary is.

Further reading

Problem with a question

Next.js · Junior · question 70

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz