Next.js Server vs Client Components: A Practical Mental Model
November 20, 2026 · 6 min read
The App Router mental shift trips up almost every React developer at first. When you forget the boundary rules, you either try to use `useState` inside a Server Component or mark your entire page `'use client'` and lose the benefits of server rendering.
Start on the server by default
Every component in Next.js App Router is a Server Component unless you opt into `'use client'`. Server Components run only on the server: they can read environment secrets, query databases or APIs directly, and send zero component JavaScript to the browser.
Push 'use client' down to the leaves
You only need `'use client'` when a component uses browser interactivity: `useState`, `useEffect`, click/input handlers, or browser APIs like `window` and `localStorage`. Instead of marking a whole page as a Client Component, fetch data in the Server Component page and pass props into small interactive client islands.
// app/page.js (Server Component)
export default async function Page() {
const videos = await getVideos(); // stays on server
return <VideosGrid initialVideos={videos} />; // small client leaf
}Quick checklist before adding 'use client'
- Does it use hooks like `useState`, `useEffect`, or `useRef`?
- Does it attach event listeners (`onClick`, `onChange`, `onSubmit`)?
- Does it read `window`, `document`, or `localStorage`? If none of the above apply, keep it on the server.