brillout / react-streaming

React Streaming. Full-fledged & Easy.
MIT License
216 stars 14 forks source link

Example using just Vite #29

Closed rjvim closed 10 months ago

rjvim commented 10 months ago

I am trying to explore this plugin and finding it little difficult to make it work.

I have already make this plugin work with vike, and as there are many examples for this.

This is a working example of Vite + React Streaming + SSR (using renderToPipeableStream)

I am trying to use react-streaming instead of renderToPipeableStream, but it's not clear how to pass bootstrapModules, or is it not needed when we use react-streaming? Does this plugin work with only vike?

Is there an example with just vite?

brillout commented 10 months ago

It should work just fine without Vike; try with https://github.com/bluwy/create-vite-extra.

Contribution welcome to improve the docs and add examples. In the interim, dig and/or read the source code which is fairly small.