Skip to content

Commit 9b544a6

Browse files
committed
chore: tweak
1 parent 1da7bdd commit 9b544a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/plugin-rsc/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export function renderHTML(...) {}
265265
#### `import.meta.viteRsc.loadCss`
266266
267267
> [!NOTE]
268-
> The plugin automatically injects CSS for React components. See the [CSS Support](#css-support) section for detailed information about automatic CSS injection.
268+
> The plugin automatically injects CSS for server components. See the [CSS Support](#css-support) section for detailed information about automatic CSS injection.
269269
270270
- Type: `(importer?: string) => React.ReactNode`
271271
@@ -441,9 +441,9 @@ This is a wrapper of `react-server-dom` API and helper API to setup a minimal RS
441441

442442
## CSS Support
443443

444-
The plugin automatically handles CSS code-splitting and injection for React server components. This eliminates the need to manually call [`import.meta.viteRsc.loadCss()`](#importmetaviterscloadcss) in most cases.
444+
The plugin automatically handles CSS code-splitting and injection for server components. This eliminates the need to manually call [`import.meta.viteRsc.loadCss()`](#importmetaviterscloadcss) in most cases.
445445

446-
1. **Component Detection**: The plugin automatically detects React server components by looking for:
446+
1. **Component Detection**: The plugin automatically detects server components by looking for:
447447
- Function exports with capital letter names (e.g., `export function Page() {}`)
448448
- Default exports that are functions with capital names (e.g., `export default function Page() {}`)
449449
- Const exports assigned to functions with capital names (e.g., `export const Page = () => {}`)

0 commit comments

Comments
 (0)