diff --git a/packages/plugin-rsc/README.md b/packages/plugin-rsc/README.md index 2d7593f07..440d6f516 100644 --- a/packages/plugin-rsc/README.md +++ b/packages/plugin-rsc/README.md @@ -22,8 +22,7 @@ npx degit vitejs/vite-plugin-react/packages/plugin-rsc/examples/starter my-app - [`./examples/starter`](./examples/starter) - This example provides an in-depth overview of API with inline comments to explain how they function within RSC-powered React application. - [`./examples/react-router`](./examples/react-router) - - This demonstrates how to integrate [experimental React Router RSC API](https://remix.run/blog/rsc-preview) with this plugin. - It also includes `@cloudflare/vite-plugin` integration. + - 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. - [`./examples/basic`](./examples/basic) - This is mainly used for e2e testing and include various advanced RSC usages (e.g. `"use cache"` example). It also uses a high level `@vitejs/plugin-rsc/extra/{rsc,ssr,browser}` API for quick setup. diff --git a/packages/plugin-rsc/examples/react-router/README.md b/packages/plugin-rsc/examples/react-router/README.md index af758971b..27e7f9c77 100644 --- a/packages/plugin-rsc/examples/react-router/README.md +++ b/packages/plugin-rsc/examples/react-router/README.md @@ -2,6 +2,9 @@ https://vite-rsc-react-router.hiro18181.workers.dev +> [!NOTE] +> 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. + Vite RSC example based on demo made by React router team with Parcel: - https://github.com/jacob-ebey/parcel-plugin-react-router/