Skip to main content
Back to Log
January 05, 2025

React Server Components: When to use "use client"

A definitive guide on structuring your Next.js App Router applications to maximize the benefits of React Server Components.

The Next.js App Router introduced React Server Components (RSC) as the default. While powerful, many developers default to slapping "use client" at the top of every file out of habit.

The Leaf Node Strategy

We treat our application trees like a deeply rooted plant. The trunk and major branches (Layouts, Pages, Data Fetching wrappers) are always Server Components. They handle the heavy lifting: database queries, raw data formatting, and SEO metadata.

We only append "use client" to the "leaves" of the tree—small, isolated components that require interactivity (like a LikeButton or a DropdownMenu).

By isolating client boundaries, we dramatically reduce the amount of JavaScript sent to the browser.

Start a project · Free quote

LET'SBUILD.

Leave your email or number and a one-line brief. You'll hear back from an engineer — not a salesperson — within 24 hours, with a clear plan and a quote.

24-hour reply No obligation 200+ businesses built

Suite from ₹250/mo · Labs from ₹10,000 · see full pricing

We only use this to reply about your project. No spam, no lists.