jplhomer / vite-streaming-ssr-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 85.8%Language:CSS 9.7%Language:HTML 4.4%