Skip to content

[Suggestion]: The official way to build a simple static generated website (SSG) without Next.js #7155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stouch opened this issue Sep 10, 2024 · 5 comments

Comments

@stouch
Copy link

stouch commented Sep 10, 2024

Summary

Improve docs about Static Site Generation (SSG)

Page

No response

Details

What is the official and easiest way to build a static-files generated website (with separate .html files) with React ?

I finally used https://github.com/Daydreamer-riri/vite-react-ssg which is very good, but I was quite surprised to not find anything clear way to do so in the docs.

(This part is not clear at all : https://react.dev/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022#static-server-rendering-optimizations)
Capture d’écran 2024-09-10 à 17 36 16

@stouch
Copy link
Author

stouch commented Oct 12, 2024

+1... This issue looks to me a major missing information in React documentation.

@stouch
Copy link
Author

stouch commented Nov 29, 2024

Any news about this one ?

@aheggie
Copy link

aheggie commented Dec 17, 2024

I'm an experienced React dev who ended up here after spending an hour completely lost on how to achieve basic SSG so I'll echo that this is missing information

@stouch
Copy link
Author

stouch commented Dec 20, 2024

Daydreamer-riri Riri has the official way with vite-react-ssg, as long as React does not improve the docs about this..

@rickhanlonii
Copy link
Member

Closed by #7626, along with #7495 and #7624. The easiest way is to use a framework that supports this, but if you choose to use a build tool and build this yourself, you'll need to consult the docs of the build tool you choose or build it yourself using the react-dom static APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants