You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-rsc/README.md
+7-18Lines changed: 7 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -445,22 +445,11 @@ export function Page() {
445
445
}
446
446
```
447
447
448
-
### Using React Canary and Experimental versions
448
+
### Using different React versions
449
449
450
-
To use React's [canary](https://react.dev/community/versioning-policy#canary-channel) or [experimental](https://react.dev/community/versioning-policy#all-release-channels) versions with `@vitejs/plugin-rsc`, you have two options:
450
+
By default, `@vitejs/plugin-rsc` includes a [vendored version](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-rsc/package.json#L64) of `react-server-dom-webpack`. When `react-server-dom-webpack` is installed in your project's dependencies, the plugin will automatically use it instead, allowing you to use any React version you need.
451
451
452
-
**Option 1: Use preview releases from pkg.pr.new**
453
-
454
-
You can use preview releases that bundle specific React versions. See [PR #524](https://github.com/vitejs/vite-plugin-react/pull/524) for instructions on installing these preview packages.
By default, `@vitejs/plugin-rsc` includes a vendored version of `react-server-dom-webpack`. However, when `react-server-dom-webpack` is installed in your project's dependencies, the plugin will automatically use it instead. This allows you to:
459
-
460
-
- Stay up-to-date with the latest React Server Components runtime without waiting for plugin updates
461
-
- Use specific React versions (stable, canary, or experimental)
462
-
463
-
Simply install the version you need:
452
+
**[Canary](https://react.dev/community/versioning-policy#canary-channel) or [experimental](https://react.dev/community/versioning-policy#experimental-channel) versions:**
464
453
465
454
```json
466
455
{
@@ -472,14 +461,14 @@ Simply install the version you need:
472
461
}
473
462
```
474
463
475
-
Or for experimental:
464
+
**Specific versions (e.g., for security updates):**
0 commit comments