https://github.com/parcel-bundler/rsc-examples
Parcel React Server Components Examples
https://github.com/parcel-bundler/rsc-examples
Last synced: 3 months ago
JSON representation
Parcel React Server Components Examples
- Host: GitHub
- URL: https://github.com/parcel-bundler/rsc-examples
- Owner: parcel-bundler
- Created: 2024-12-09T05:58:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-29T21:28:11.000Z (6 months ago)
- Last Synced: 2025-06-26T20:41:47.969Z (4 months ago)
- Homepage:
- Size: 299 KB
- Stars: 112
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parcel React Server Components Examples
[React Server Components](https://react.dev/reference/rsc/server-components) are a new type of Component that renders ahead of time, before bundling, in an environment separate from your client app or SSR server. This repo is a set of examples of various ways to use RSC with Parcel. Check out [the docs](https://parceljs.org/recipes/rsc/) for more info.
There are currently three primary examples. See the linked READMEs for a full descriptions:
1. [Server Driven](examples/server) – A server driven todo list app where routing happens server side. Demonstrates composing server and client components, SSR and hydration, server actions with client JS and HTML forms, and a simple client side router.
2. [Static](examples/static) – A simple static site generator that runs server components at build time and outputs static HTML.
3. [Client Driven](examples/client) – Demonstrates how to integrate RSCs into an existing client-rendered app, without changing the entrypoint.In addition, there are examples showing how to use alternative runtimes.
* [Bun](examples/server-bun)
* [Deno](examples/server-deno)
* [Cloudflare Workers](examples/server-cloudflare)