React Server ComponentsBuild high-performance Single Page Applications with React Server Components. No server required at runtime - just pre-rendered HTML with full SPA interactivity.
// vite.config.ts
import funstackStatic from "@funstack/static";
export default {
plugins: [
funstackStatic({
root: "./src/root.tsx",
app: "./src/App.tsx",
}),
],
};The best of both worlds: SPA interactivity with RSC performance, powered by Vite.
RSC runs at build time to generate static HTML. Your SPA loads instantly with minimal overhead.
Deploy anywhere that serves static files. RSC benefits without the complexity of server infrastructure.
Lightning fast HMR in development and optimized builds in production. Enjoy the best DX with Vite.
Meet defer(), an innovative way for programmatic code splitting in the RSC era.
Build your next SPA with the performance benefits of React Server Components.
Read the Documentation