Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 698 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 698 Bytes

Vite: React 18 Streaming SSR

This is a code example which demonstrates building a React 18 (alpha) application with Vite and streaming a SSR response to both Node.js and Workers runtimes.

It is meant to be a Vite version of the official React 18 Streaming SSR example, only modified to support Vite and its way of detecting and bundling assets.

Development

yarn

Run the Vite dev server (Node.js runtime):

yarn dev

Run the Miniflare dev server (Workers runtime):

yarn build && yarn workers

Learn more