Plugin Rsc
@vitejs/plugin-rsc
React Server Components (RSC) support for Vite.
Component Libraries
react
react-server-components
rsc
vite
vite-plugin
@vitejs/plugin-rsc
Component Libraries
javascript
npm
frontend
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @vitejs/plugin-rscCode example
import { Button } from "@vitejs/plugin-rsc";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by yyx990803
- 0 weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Not supported in React Native
- 0 open issues on GitHub