Skip to content

Commit 0c88db8

Browse files
hi-ogawaclaude
andcommitted
docs(rsc): clarify React Router example is less official setup
Add note that this example represents a custom integration that predates React Router's official RSC support. Keep example for posterity and as an alternative approach while acknowledging the official implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 76328a6 commit 0c88db8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/plugin-rsc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ npx degit vitejs/vite-plugin-react/packages/plugin-rsc/examples/starter my-app
2222
- [`./examples/starter`](./examples/starter)
2323
- This example provides an in-depth overview of API with inline comments to explain how they function within RSC-powered React application.
2424
- [`./examples/react-router`](./examples/react-router)
25-
- This demonstrates how to integrate [React Router RSC](https://reactrouter.com/how-to/react-server-components) with this plugin.
25+
- This demonstrates a custom integration of React Router with RSC using this plugin. Note that React Router now provides [official RSC support](https://reactrouter.com/how-to/react-server-components), but this example is kept as an alternative approach.
2626
It also includes `@cloudflare/vite-plugin` integration.
2727
- [`./examples/basic`](./examples/basic)
2828
- This is mainly used for e2e testing and include various advanced RSC usages (e.g. `"use cache"` example).

packages/plugin-rsc/examples/react-router/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
https://vite-rsc-react-router.hiro18181.workers.dev
44

5-
This example demonstrates how to integrate [React Router RSC](https://reactrouter.com/how-to/react-server-components) with `@vitejs/plugin-rsc`. React Router now provides official React Server Components support, allowing you to build full-stack applications with server-side rendering and client-side routing.
5+
> [!NOTE]
6+
> This example demonstrates a custom integration of React Router with RSC using `@vitejs/plugin-rsc`. While React Router now provides [official RSC support](https://reactrouter.com/how-to/react-server-components), this example represents a less official setup that predates the official implementation. It's kept for posterity and as an alternative approach for those who prefer this integration method.
7+
8+
This example demonstrates how to integrate React Router with React Server Components using `@vitejs/plugin-rsc`.
69

710
See also:
811

0 commit comments

Comments
 (0)