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
+39-35Lines changed: 39 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ This package provides [React Server Components](https://react.dev/reference/rsc/
4
4
5
5
## Features
6
6
7
-
-**Framework-agnostic**: The plugin implements [RSC conventions](https://react.dev/reference/rsc/server-components) and provides low level `react-server-dom` runtime API without framework-specific abstractions.
8
-
-**CSS support**: CSS is automatically code-split both at client and server components and they are injected upon rendering.
7
+
-**Framework-agnostic**: The plugin implements [RSC bundler features](https://react.dev/reference/rsc/server-components) and provides low level `react-server-dom` runtime API without framework-specific abstractions.
8
+
-**Runtime-agnostic**: Built on [Vite environment API](https://vite.dev/guide/api-environment.html)and works with other runtimes (e.g., [`@cloudflare/vite-plugin`](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare)).
9
9
-**HMR support**: Enables editing both client and server components without full page reloads.
10
-
-**Runtime agnostic**: Built on [Vite environment API](https://vite.dev/guide/api-environment.html)and works with other runtimes (e.g., [`@cloudflare/vite-plugin`](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare)).
10
+
-**CSS support**: CSS is automatically code-split both at client and server components and they are injected upon rendering.
- 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.
30
-
-[`./examples/ssg`](./examples/ssg) - Static site generation with MDX and client components for interactivity.
31
28
-[`./examples/basic`](./examples/basic) - Advanced RSC features and testing
32
29
- This is mainly used for e2e testing and include various advanced RSC usages (e.g. `"use cache"` example).
30
+
-[`./examples/ssg`](./examples/ssg) - Static site generation with MDX and client components for interactivity.
- 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.
33
33
34
34
## Basic Concepts
35
35
@@ -215,7 +215,7 @@ main();
215
215
216
216
The plugin provides an additional helper for multi environment interaction.
- `createFromReadableStream`: RSC deserialization (RSC stream -> React VDOM). This is also available on rsc environment itself. For example, it allows saving serialized RSC and deserializing it for later use.
- `createFromReadableStream`: RSC deserialization (RSC stream -> React VDOM). This is also available on rsc environment itself. For example, it allows saving serialized RSC and deserializing it for later use.
0 commit comments