When to use a server component vs a client component in NextJs?
When to use a server component vs a client component in NextJs?
1 Reply
TLDR: Client components are for when you need interactivity, client state and browser APIs such as localStorage.
https://nextjs.org/docs/app/building-your-application/rendering/client-components
Rendering: Client Components
Learn how to use Client Components to render parts of your application on the client.