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
Sturlen
Sturlen16mo ago
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.
Want results from more Discord servers?
Add your server