Re:New React docs pretend SPAs don't exist anymore
by youngtaff on Saturday March 18, 2023 @05:14AM
(#35207497)
SSR isn’t actually rendering though… it’s generation of markup just like PHP does… sure sometimes it contains data to rehydrate the page just like early .Net components used to
The various JS frameworks seem to have taken a concept that was common and tried to rebrand it which just adds more confusion
Re:New React docs pretend SPAs don't exist anymore
by tshaddox on Saturday March 18, 2023 @01:28PM
(#35211160)
In React I think it’s pretty fair to call it server-side rendering, to distinguish it from the usual client-side React render which manipulates the DOM. It’s just like that, except it renders to a string that can be returned in an HTML response (or streams: https://react.dev/reference/react-dom/server/renderToString#...).
It might be a little clearer now to call it “pre-rendering,” to distinguish it from React server components which also run on the server but which are quite distinct from SSRing client components.
You might be talking about what the JavaScript community has started to call “MPA,” which doesn’t seem to have converged on a clear meaning but seems to usually imply that some or all page navigations do involve a trip to the web server and an HTML response.