Where Exactly Should I Put "use client"? (Next.js 13+ Guide)
"use client"를 도대체 어디에 써야 할까? (Next.js 13+ 가이드)
Stop adding 'use client' to every file. I explain the clear boundary between Server and Client Components, and how to implement interactivity without sacrificing performance in Next.js App Router.
c
codemapo
INTERDISCIPLINARY DEV · SEOUL
8. Conclusion: Lazy Developers Win
The secret to performance in Next.js App Router is "Laziness."
Don't make the browser do the work. Do it on the server beforehand.
Before typing "use client", pause for 3 seconds:
Does this really need a click handler?
Does this really need window or useEffect?
Can I use a Server Action instead of an event handler?
If not, leave it as a Server Component.
Your users deserve a lightweight app. And you deserve a simpler codebase using the Platform's capabilities.