Back to Blogs
The Rise of Server Components in React: A Full-Stack Wise Perspective
React Server Components (RSC) fundamentally shift how we think about modern web development. Learn how pushing rendering to the edge eliminates large Javascript bundles.
## The Heavy Bundle Problem
For years, Single Page Applications (SPAs) shipped massive JavaScript bundles to the browser. The browser had to download the JS, parse it, execute it, and finally hit an API to fetch data before the user could see anything.
## Enter React Server Components (RSC)
RSCs introduced a paradigm shift: What if components never shipped to the client? With RSCs, components execute directly on the server (close to your database) and stream fully rendered HTML down the wire.
### Key Benefits:
1. **Zero Client Javascript:** RSCs don't add a single byte to your client-side JS bundle.
2. **Direct DB Access:** No more writing boilerplate API routes. An RSC can safely run a direct SQL query or read the filesystem because its logic never leaves the secure server environment.
3. **Streaming:** Data can stream in progressively, heavily improving Largest Contentful Paint (LCP) and user perceived performance.
Server components aren't replacing client components—they are restricting client components (`"use client"`) strictly to where interactivity (like `useState` or `onClick`) is actually needed.
Loved this read? Read on Medium