vite-ssr icon indicating copy to clipboard operation
vite-ssr copied to clipboard

React 18 support

Open dchenk opened this issue 2 years ago • 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.

dchenk avatar Jun 13 '22 14:06 dchenk

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

jamespearson avatar Nov 11 '22 09:11 jamespearson

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.

frandiox avatar Nov 11 '22 11:11 frandiox