Skip to content

Commit d464e8f

Browse files
authored
chore(rsc): update React Router RSC references (#581)
1 parent bd6a2a1 commit d464e8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/plugin-rsc/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +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 [experimental React Router RSC API](https://remix.run/blog/rsc-preview) with this plugin.
26-
It also includes `@cloudflare/vite-plugin` integration.
25+
- This demonstrates how to integrate [experimental React Router RSC API](https://remix.run/blog/rsc-preview). React Router now provides [official RSC support](https://reactrouter.com/how-to/react-server-components), so it's recommended to follow React Router's official documentation for the latest integration.
2726
- [`./examples/basic`](./examples/basic)
2827
- This is mainly used for e2e testing and include various advanced RSC usages (e.g. `"use cache"` example).
2928
It also uses a high level `@vitejs/plugin-rsc/extra/{rsc,ssr,browser}` API for quick setup.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

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

5+
> [!NOTE]
6+
> React Router now provides [official RSC support](https://reactrouter.com/how-to/react-server-components) for Vite. The example might not be kept up to date with the latest version. Please refer to React Router's official documentation for the latest integrations.
7+
58
Vite RSC example based on demo made by React router team with Parcel:
69

710
- https://github.com/jacob-ebey/parcel-plugin-react-router/

0 commit comments

Comments
 (0)