reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.08k stars 7.55k forks source link

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

Open stouch opened 2 months ago

stouch commented 2 months ago

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 commented 1 month ago

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