You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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)

The text was updated successfully, but these errors were encountered: