| | |

React Server Components 21 🧬 Framework Support Reality — Why RSC cannot run standalone

⏱️ Estimated read: 15 min | |

React Server Components are a specification, not a runtime. The React package ships the component model, the serialization protocol (Flight), and the client-side reconciliation logic, but it does not ship the machinery that makes the “server” half of RSC work. That machinery—the bundler integration that separates server and client modules, the HTTP server that receives requests and returns Flight payloads, the router that maps URLs to component trees, and the build pipeline that generates client references—lives in the framework. The React documentation states this directly: the underlying APIs used to implement an RSC bundler or framework “do not follow semver and may break between minors in React 19.x” . The frameworks absorb that instability; a standalone setup would have to absorb it alone.

Key point: RSC cannot run standalone because the "use server" directive and the Server Component model are inert without a bundler that understands them and a server that can execute them. The React package provides the semantics; the framework provides the execution environment. Every production RSC deployment is a framework deployment.


Why RSC requires a framework

The bundler dependency. A Server Component is a function that renders on the server. A Client Component is a function that renders in the browser. The bundler is the component that knows which is which. It reads the "use client" directive, creates a client reference for the module, excludes the server-only code from the browser bundle, and generates the mapping that allows the server to tell the client which module to load. The React RFC for Server Components lists bundling as a core integration point: “Server Components must be able to dynamically send Client Components to the client, including any metadata necessary for the client to fetch the appropriate bundle(s)” . A plain tsc or esbuild invocation does not do this. The bundler must be RSC-aware.

The server dependency. A Server Component that fetches data runs on a server. That server must receive an HTTP request, invoke the component tree, serialize the result into the Flight format, and send it to the client. The server must also handle the client’s subsequent requests for Server Actions or for re-rendering parts of the tree. React does not provide this server. The React documentation describes the “server” as “an environment separate from your client app or SSR server,” and notes that Server Components “can run once at build time on your CI server, or they can be run for each request using a web server” . The web server is the framework’s responsibility. Waku’s documentation states the dependency plainly: “RSC still relies on a framework (or at least a bundler) for implementation” .

The router dependency. RSC applications need a router that maps URLs to Server Component trees. The RFC lists routing as a core concern: “applications will generally need some integration with a router in order to map requests for pages into requests to render specific Server Components, and to transmit their rendered output to the client for final display” . React Router is developing RSC support, but as of the current release, an early unstable version is available and it is “not yet recommended for production” . The router is not optional; it is the entry point that the server uses to decide which components to render.

The trade-off. The framework dependency is not a temporary limitation that will disappear when React stabilizes the APIs. It is architectural. RSC is a full-stack model that requires coordination between the bundler, the server, and the client runtime. React can stabilize the component semantics, but the integration points are framework-specific because different frameworks make different choices about routing, caching, deployment, and build tooling. Next.js chose Turbopack and its own cache model. Waku chose Vite and a minimal surface. A standalone setup would have to make all of those choices itself, which is indistinguishable from building a framework.


a. The frameworks that implement RSC

The RSC ecosystem is small and the maturity levels vary. The React documentation does not list a standalone option; it points to frameworks. The DebugBear analysis of the ecosystem describes the landscape: Next.js App Router is the most production-ready implementation; React Router v7 has RSC support in active development but is not recommended for production; Waku is a lightweight framework that recently hit 1.0 alpha and is “worth watching, but still not recommended for production use” . The GitHub discussion of the RSC proposal notes the practical reality: “If you are not using a ‘framework’ like nextjs, it will be a big challenge to adopt RSC (at least for the moment)” .

Next.js is the reference implementation because it was built alongside the React team. The RFC states: “We are partnering with Next.js to build out an initial integration” . That partnership produced the App Router, which is the implementation that most RSC applications use. The App Router handles the bundling, the server, the routing, and the caching. The developer writes Server Components and Client Components, and the framework does the rest.

Waku is the minimal alternative. It is built on Vite, it implements the RSC primitives without the SSG/SSR layer that Next.js carries, and it is designed to “explore the core RSC capabilities and discover RSC best practices independent of traditional SSG/SSR strategies” . It is a framework, not a standalone runtime. It still provides the server, the bundler integration, and the client runtime. The difference is the surface area, not the presence of a framework.


b. The work a standalone setup would require

A developer who wanted to run RSC without a framework would have to build the framework. The list of missing pieces is the list of things that Next.js and Waku provide:

  • An RSC-aware bundler configuration. The bundler must recognize "use client", generate client references, separate server and client graphs, and produce the manifest that maps module IDs to chunk URLs. The @lazarv/rsc library implements the Flight serialization protocol, but it is a serializer, not a framework . It does not provide routing, serving, or bundling.
  • An HTTP server. The server must receive requests, invoke the Server Component tree, serialize the result, and stream it to the client. It must also handle Server Action requests, which are separate POST endpoints. The forket and @mfng/webpack-rsc libraries provide pieces of this, but the integration is the developer’s responsibility.
  • A client runtime. The client must receive the Flight payload, deserialize it, load the Client Component chunks, and hydrate them. React provides the client-side react-server-dom-webpack runtime, but it must be wired into the client entry point.
  • A router. The server must map URLs to component trees. A custom setup would need to implement this mapping and the client-side navigation logic that requests new trees from the server.
  • A security model. The Flight protocol crosses a trust boundary in both directions. The server-to-client stream carries rendered UI; the client-to-server reply carries Server Action arguments. A flawed decoder is a remote code execution surface. The @lazarv/rsc library describes its “dedicated, hardened reply decoder that matches the security barriers React added after CVE-2025” . A standalone setup would need to implement or integrate that hardening.

The work is not impossible. It is the work that a framework does. The RSC RFC anticipated this: “Server Components are designed from the beginning to be used with any framework or integrated into custom application setups” . The custom setup is possible. It is also indistinguishable from writing a framework.


Complete Example Session

// ============================================
// PART 1: THE SERVER COMPONENT (SOURCE)
// ============================================

// app/page.jsx — a Server Component
// The async function is the RSC model.
// It runs on the server and returns JSX.
async function Page() {
  const data = await db.query('SELECT * FROM posts');
  return (
    <div>
      {data.map(post => <Post key={post.id} post={post} />)}
    </div>
  );
}

// ============================================
// PART 2: THE CLIENT COMPONENT (SOURCE)
// ============================================

// app/Post.jsx — a Client Component
'use client';

import { useState } from 'react';

export function Post({ post }) {
  const [expanded, setExpanded] = useState(false);
  return (
    <article>
      <h2>{post.title}</h2>
      <button onClick={() => setExpanded(!expanded)}>Toggle</button>
      {expanded && <p>{post.body}</p>}
    </article>
  );
}

// ============================================
// PART 3: WHAT THE FRAMEWORK DOES WITH THESE
// ============================================

// The framework's bundler:
// 1. Reads 'use client' on Post.jsx.
// 2. Creates a client reference for Post.
// 3. Excludes Post.jsx from the server bundle.
// 4. Includes Post.jsx in a client chunk.
// 5. Generates a manifest mapping the reference to the chunk URL.

// The framework's server:
// 1. Receives a request for /.
// 2. Renders Page as a Server Component.
// 3. Encounters <Post />, resolves it as a client reference.
// 4. Serializes the tree into Flight format.
// 5. Streams the Flight payload to the client.

// The framework's client runtime:
// 1. Receives the Flight payload.
// 2. Deserializes the server-rendered tree.
// 3. Loads the Post chunk.
// 4. Hydrates Post with the serialized props.

// ============================================
// PART 4: WHAT A STANDALONE SETUP WOULD NEED
// ============================================

// The React package does not do steps 3-5 above.
// A standalone setup must provide:

// 1. A bundler configuration that understands 'use client'.
//    This is not a plugin; it is a fork of the bundler's
//    module graph logic.

// 2. A server that invokes the RSC renderer and serializes
//    the result. React provides the renderer (react-server-dom-*),
//    but not the HTTP server or the request routing.

// 3. A client entry that loads the Flight runtime and
//    hydrates the tree. React provides the runtime,
//    but not the chunk loading logic.

// 4. A router that maps URLs to component trees.
//    React provides no router.

// ============================================
// PART 5: THE FRAMEWORKS THAT DO THIS
// ============================================

// Next.js App Router
// - Bundler: Turbopack (RSC-aware)
// - Server: Next.js server
// - Router: App Router (file-system based)
// - Client runtime: Next.js client entry
// - Caching: Next.js cache model

// Waku
// - Bundler: Vite (RSC-aware via Waku plugin)
// - Server: Waku server (Hono-based)
// - Router: waku/router (optional)
// - Client runtime: Waku client entry
// - Caching: none (direct execution)

// ============================================
// PART 6: THE REACT DOCUMENTATION WARNING
// ============================================

// From the React docs:
// "the underlying APIs used to implement a React Server Components
// bundler or framework do not follow semver and may break
// between minors in React 19.x"
//
// This is the reason the integration is framework-specific.
// React is not promising stability to standalone implementations.
// It is promising stability to the component model,
// and working with frameworks to stabilize the integration APIs.

// ============================================
// PART 7: THE MINIMAL ALTERNATIVE — WAKU
// ============================================

// Waku is the smallest framework that implements RSC.
// It is still a framework.
//
// src/entries.tsx
import { defineEntries } from 'waku/server';

export default defineEntries(
  async (input) => {
    return {
      App: <App />,
    };
  }
);

// The defineEntries function is the framework's server API.
// The framework handles the bundling, the server, and the client.
// The developer writes the components.

// ============================================
// PART 8: THE CUSTOM SETUP COMPONENTS
// ============================================

// The libraries that exist for custom setups:
//
// @lazarv/rsc — Flight serialization/deserialization
// @mfng/webpack-rsc — Webpack loaders/plugins for RSC
// forket — Express integration for RSC
//
// These are pieces, not a framework.
// The integration is the developer's work.
// The result is a framework.

// ============================================
// PART 9: THE PRODUCTION REALITY
// ============================================

// As of the current release:
// - Next.js App Router: production-ready 
// - React Router v7: RSC support in development 
// - Waku: 1.0 alpha, not recommended for production 
//
// There is no standalone RSC runtime.
// There is no "React RSC" package that runs without a framework.
// The framework is the runtime.

// ============================================
// PART 10: THE VERIFICATION CHECKLIST
// ============================================

// [ ] The 'use client' directive is understood by the bundler.
// [ ] The server can invoke the RSC renderer.
// [ ] The Flight payload is serialized and streamed.
// [ ] The client runtime loads and hydrates Client Components.
// [ ] The router maps URLs to Server Component trees.
// [ ] The security model for Flight is implemented.
//
// All six are framework responsibilities.
// React provides the component model, not the execution environment.

The ten parts covered the source components, the framework’s responsibilities, the standalone requirements, the framework implementations, the React documentation warning, Waku’s minimal API, the custom setup libraries, and the production reality. The through-line is that RSC is a full-stack model, and the stack is the framework.


Quick Reference

What React provides vs what the framework provides

React providesFramework provides
Component modelBundler integration
Flight serialization protocolHTTP server
Client-side reconciliationRouter
"use client" semanticsChunk loading
"use server" semanticsServer Action endpoints
use() hookCache and deployment model

Framework maturity

FrameworkRSC statusProduction readiness
Next.js App RouterStableProduction-ready
React Router v7In developmentNot recommended
Waku1.0 alphaNot recommended

Custom setup libraries

LibraryProvidesDoes not provide
@lazarv/rscFlight serializationServer, router, bundler
@mfng/webpack-rscWebpack loaders/pluginsServer, router
forketExpress integrationRouter, build pipeline

Best Practices

✅ Do This:

// Choose a framework that implements RSC
// Next.js App Router or Waku                               // ✅

// Pin the React version in a framework
// The framework tracks the unstable integration APIs        // ✅

// Use the framework's router and server
// The integration is the value the framework provides       // ✅

❌ Don’t Do This:

// Expect React to run RSC without a framework
// The React package does not include the server or router.  // ❌

// Build a custom RSC setup without understanding the scope
// The libraries are pieces, not a framework.                // ❌

// Assume the integration APIs are stable
// They are not semver-guaranteed in React 19.x.             // ❌

Common Pitfalls

PitfallWhy It HappensFix
"use client" has no effectBundler not RSC-awareUse a framework’s bundler
Server Component is bundled to clientBundler does not separate graphsUse a framework
Client Component does not hydrateClient runtime not wiredUse a framework’s client entry
Server Action 404sServer endpoint not generatedUse a framework

Real-World Examples

1. Next.js RSC app

// app/page.jsx — Server Component
async function Page() { const data = await db.query(); return <List data={data} />; }

2. Waku RSC app

// src/entries.tsx — Waku entry
export default defineEntries(async (input) => ({ App: <App /> }));

3. The "use client" boundary

'use client';
export function Post({ post }) { const [x] = useState(); return <div>{post.title}</div>; }

4. The framework’s bundler

// Turbopack (Next.js) or Vite (Waku)
// Reads 'use client' and creates client references

5. The framework’s server

// Next.js server or Waku server
// Invokes the RSC renderer and serializes Flight

6. The React documentation warning

// "the underlying APIs ... do not follow semver"

7. The minimal framework

// Waku is the smallest RSC framework
// It is still a framework

8. The custom setup pieces

// @lazarv/rsc — serialization
// forket — Express integration

9. The production reality

// Next.js is production-ready
// React Router and Waku are not

10. The framework is the runtime

// RSC is a full-stack model
// The stack is the framework

Visual

React vs Framework

┌──────────────────────────────────────────────────────────────┐
│  WHO PROVIDES WHAT                                            │
│                                                              │
│  React package                    Framework                 │
│  ┌─────────────────────┐         ┌─────────────────────┐   │
│  │ Component model     │         │ Bundler integration │   │
│  │ Flight protocol     │         │ HTTP server         │   │
│  │ "use client"        │         │ Router              │   │
│  │ "use server"        │         │ Client runtime      │   │
│  │ use() hook          │         │ Chunk loading       │   │
│  └─────────────────────┘         │ Cache model         │   │
│                                   │ Deployment          │   │
│                                   └─────────────────────┘   │
│                                                              │
│  React provides the semantics.                              │
│  The framework provides the execution environment.         │
└──────────────────────────────────────────────────────────────┘

The RSC Pipeline

┌──────────────────────────────────────────────────────────────┐
│  FROM SOURCE TO BROWSER                                       │
│                                                              │
│  Source (Server Component)                                   │
│         │                                                    │
│         ▼                                                    │
│  ┌─────────────────────┐                                    │
│  │ Bundler             │  Separates server/client graphs    │
│  │ (RSC-aware)         │  Creates client references         │
│  └──────────┬──────────┘                                    │
│             │                                                │
│             ▼                                                    │
│  ┌─────────────────────┐                                    │
│  │ Server              │  Renders the tree                  │
│  │ (Framework)         │  Serializes Flight                 │
│  └──────────┬──────────┘                                    │
│             │                                                │
│             ▼                                                    │
│  ┌─────────────────────┐                                    │
│  │ Client runtime      │  Deserializes Flight               │
│  │ (Framework)         │  Loads chunks                      │
│  │                     │  Hydrates Client Components        │
│  └─────────────────────┘                                    │
│                                                              │
│  Every step after the source is framework-provided.         │
└──────────────────────────────────────────────────────────────┘

The Framework Maturity

┌──────────────────────────────────────────────────────────────┐
│  RSC FRAMEWORK STATUS                                         │
│                                                              │
│  Next.js App Router                                           │
│  ┌─────────────────────┐                                    │
│  │ Production-ready    │  The reference implementation      │
│  │ Bundler: Turbopack  │                                    │
│  │ Server: Next.js     │                                    │
│  │ Router: App Router  │                                    │
│  └─────────────────────┘                                    │
│                                                              │
│  Waku                                                        │
│  ┌─────────────────────┐                                    │
│  │ 1.0 alpha           │  Minimal RSC framework             │
│  │ Bundler: Vite       │  Not recommended for production   │
│  │ Server: Hono        │                                    │
│  │ Router: waku/router │                                    │
│  └─────────────────────┘                                    │
│                                                              │
│  React Router v7                                              │
│  ┌─────────────────────┐                                    │
│  │ In development      │  RSC support not stable            │
│  │ Early version avail.│                                    │
│  └─────────────────────┘                                    │
└──────────────────────────────────────────────────────────────┘

Summary

ItemValue
React providesComponent model, Flight protocol, semantics
Framework providesBundler, server, router, client runtime
RSC requiresA bundler that understands "use client"
Production-ready frameworkNext.js App Router
Minimal frameworkWaku (1.0 alpha)
Custom setupPossible, but requires building a framework
Integration API stabilityNot semver-guaranteed in React 19.x

Key takeaways:

  • RSC is a specification, not a runtime. React provides the component model and the serialization protocol. The framework provides the bundler integration, the HTTP server, the router, and the client runtime. The "use client" directive is inert without a bundler that reads it, and a Server Component is inert without a server that invokes it .
  • The React documentation warns about the integration APIs. The underlying APIs used to implement an RSC bundler or framework “do not follow semver and may break between minors in React 19.x.” Frameworks pin React versions and absorb the instability. A standalone setup would have to do the same, alone .
  • Next.js is the reference implementation. It was built alongside the React team, it is the most production-ready, and it provides the full stack: bundler, server, router, and cache. Waku is the minimal alternative, but it is still a framework, and it is not yet recommended for production .
  • A custom setup is possible but is indistinguishable from building a framework. The libraries that exist—@lazarv/rsc, @mfng/webpack-rsc, forket—provide pieces of the Flight protocol and the bundling integration. They do not provide the router, the server, or the deployment model. The developer who assembles them is building a framework .
  • The framework dependency is architectural, not temporary. RSC requires coordination between the bundler, the server, and the client. React can stabilize the component semantics, but the integration points are framework-specific because different frameworks make different choices about routing, caching, and deployment. The framework is the runtime.

Remember: React Server Components are a full-stack model, and the stack is the framework. The React package provides the semantics—the "use client" boundary, the "use server" directive, the Flight serialization format, the use() hook. The framework provides the execution environment—the bundler that separates the graphs, the server that renders the tree, the router that maps URLs to components, the client runtime that hydrates the result. A developer who wants to run RSC without a framework is a developer who wants to build a framework. The libraries exist, but the integration is the work. The framework is the runtime.

Was this helpful?


Stop using slow, ad-bloated tool sites! 🤮

🔎 Search “KandZ Tools” on Google to use many professional utilities for free.

KandZ.me is the ultimate minimalist hub for:
✅ Finance (Mortgage, Interest, Inflation)
✅ Tech (Base64, JSON, Dev Suite, IP)
✅ Health (BMI, BMR, TDEE)
✅ Productivity (Timer, Workspace, QR)

⚡️ Fast & Private
🔒 No data leaves your device
💎 100% Free

🔗 Use it now: https://tools.kandz.me
🔖 Bookmark it—you’ll need it later!