logoalt Hacker News

tshaddoxyesterday at 9:12 PM2 repliesview on HN

That was indeed one of the main points of SPAs, but React Server Components are generally not used for pure SPAs.


Replies

reactordevyesterday at 9:36 PM

Correct, their main purpose is ecosystem lock-in. Because why return json when you can return html. Why even build a SPA when the old school model of server-side includes and PHP worked just fine? TS with koa and htmx if you must but server-side react components are kind of a waste of time. Give me one example where server side react components are the answer over a fetch and json or just fetching an html page?

show 2 replies
robertoandredtoday at 4:58 AM

Sure they are. Next sites are SPAs.