frandiox/vite-ssr

React 18 support

dchenk opened this issue · 3 comments

Are there plans to implement support for React version 18, released in March 2022? It'd be great to be able to use the latest version of React with vite-ssr.

Any update on this? React 18 has been out for 8 months now.

PRs welcome 👍 . Stuff that need to be updated (afaik):

  • Use createRoot and hydrateRoot instead of create/hydrate in entry-client.
  • Remove react-ssr-prepass if possible and rely on new suspense capabilities. Is this compatible with renderToString?
  • Add an optional mode to use renderToReadableStream instead of renderToString.

@NoremacNergfol any update on this effort?