Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rsc react-router

https://vite-rsc-react-router.hiro18181.workers.dev

Note

React Router now provides official RSC support for Vite. The example might not be kept up to date with the latest version. Please refer to React Router's official documentation for the latest integrations.

Vite RSC example based on demo made by React router team with Parcel:

See also rsc-movies.

Open in StackBlitz

Or try it locally by:

npx giget gh:vitejs/vite-plugin-react/packages/plugin-rsc/examples/react-router my-app
cd my-app
npm i
npm run dev
npm run build
npm run preview

# run on @cloudflare/vite-plugin and deploy.
# a separate configuration is found in ./cf/vite.config.ts
npm run cf-dev
npm run cf-build
npm run cf-preview
npm run cf-release