zlacker

[return to "RCE Vulnerability in React and Next.js"]
1. dzonga+Er[view] [source] 2025-12-03 18:00:56
>>rayhaa+(OP)
till this day, I don't know the substantial benefits of React Server Components over say classically rendered html pages + using htmx ?

mind you react in 2017 paid my rent. now cz of the complexity I refuse to work with react.

◧◩
2. AstroB+XD[view] [source] 2025-12-03 19:01:07
>>dzonga+Er
You can optionally enhance it and use React on the client. Doing that with HTMX is doable with "islands" but a bit more of a pain in the ass - and you'll struggle hard if you attempt to share client state across pages. Actually there are just a lot of little gotchas with the htmx approach

I mean it's a lot of complexity but ideally you shouldn't bring it in unless you actually need it. These solutions do solve real problems. The only issue is people try to use it everywhere. I don't use RSC, standard SPAs are fine for my projects and simpler

[go to top]