State of React 2025 Suggestions
- Previous edition: https://2024.stateofreact.com/en-US
- Have you used RSCs in a production app?
This one always gets me in the Usage > App Patterns question: what exactly is the difference between an SPA and an SSG? (this question is in State of React among others).
@pwbriggs SSG sites don't necessarilly execute JavaScript on the client, and typically have a built step that produces multiple HTML pages. While SPAs always have a JS client bundle and may not have more than one actual page.
Of course the line is blurred by frameworks such as Gatsby that generate a SSG that then acts as a SPA once loaded in the browser. But there's still a SSG underneath all that for users with JS disabled, for example.
Cool, thanks. So a given web app can be both an SSG and an SPA? Most sites I've build are static (i.e. the server is only serving a prebuilt set of files), and many of them also have big JS bundles to create an app on some pages.
Maybe worth clarifying in the details of that survey enntry, IMO?
Yes, an app can be all of these at the same time. I don't think the survey is the place to clarify that though, it's fine if we only measure people who are familiar with those terms as long as the measurement is consistent from year to year.