Daydreamer-riri / vite-react-ssg

Static-site generation for React on Vite.
https://vite-react-ssg.netlify.app/
MIT License
114 stars 6 forks source link

Support React Server Components #1

Open childrentime opened 1 year ago

childrentime commented 1 year ago

The React team is working hard to introduce some new features. One of them is React Server Components, which, when combined with SSG (Static Site Generation), can effectively reduce bundle size. Additionally, the built-in document meta support can replace react-helmet in future.

https://react.dev/blog/2023/03/22/react-labs-what-we-have-been-working-on-march-2023

Daydreamer-riri commented 1 year ago

It's great! I'd love to support React Server Components. My first reaction was that I wasn't sure if this would work well with my upstream dependency react-router, but I think we can definitely work something out.

Built-in document meta is great, I'll follow up first.

Would you like to help me improve this project?

childrentime commented 1 year ago

Haha, of course! However, I'm not very familiar with React Server Components right now. Let's wait for the official release and stabilization first. If you have any other questions, feel free to reach out to me.

https://github.com/facebook/react/pull/27033 The recent changes are quite often.