zlacker

[parent] [thread] 15 comments
1. dzonga+(OP)[view] [source] 2025-12-03 18:00:56
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.

replies(5): >>noneth+n2 >>switz+fb >>lepton+qb >>AstroB+jc >>ventur+Oe1
2. noneth+n2[view] [source] 2025-12-03 18:13:06
>>dzonga+(OP)
easier/more reactivity, doesnt require your api responses to be text parsable to html
3. switz+fb[view] [source] 2025-12-03 18:55:54
>>dzonga+(OP)
They lend you optionality of when and where you want your code to run. Plus it enables you to define the server/client network boundary where you see fit and cross that boundary seamlessly.

It's totally fine to say you don't understand why they have benefits, but it really irks me when people exclaim they have no value or exist just for complexity's sake. There's no system for web development that provides the developer with more grounded flexibility than RSCs. I wrote a blog post about this[0].

To answer your question, htmx solves this by leaning on the server immensely. It doesn't provide a complete client-side framework when you need it. RSCs allow both the server and the client to co-exist, simply composing between the two while maintaining the full power of each.

[0] https://saewitz.com/server-components-give-you-optionality

replies(3): >>ptx+Ul >>samdoe+Yn1 >>lobito+fYa
4. lepton+qb[view] [source] 2025-12-03 18:56:27
>>dzonga+(OP)
>now cz of the complexity I refuse to work with react.

What do you like to work with now?

replies(1): >>Tranqu+6l
5. AstroB+jc[view] [source] 2025-12-03 19:01:07
>>dzonga+(OP)
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

◧◩
6. Tranqu+6l[view] [source] [discussion] 2025-12-03 19:44:50
>>lepton+qb
Right - you can NOT tell me that a sufficiently complex application using HTMX is easier to reason about than React. I've had to deal with a complex HTMX codebase and it is a nightmare.
replies(1): >>ethanw+4p
◧◩
7. ptx+Ul[view] [source] [discussion] 2025-12-03 19:48:28
>>switz+fb
But is it a good idea to make it seamless when every crossing of the boundary has significant implications for security and performance? Maybe the seam should be made as simple and clear as possible instead.
replies(1): >>paulhe+8o
◧◩◪
8. paulhe+8o[view] [source] [discussion] 2025-12-03 19:58:46
>>ptx+Ul
Yep! It’s really hard to reason in Next about when things happen on the server vs client. This makes it harder to make things secure.

You can create clean separation in your code to make this easier to understand but it’s not well enforced by default.

◧◩◪
9. ethanw+4p[view] [source] [discussion] 2025-12-03 20:03:10
>>Tranqu+6l
Right - you can NOT tell me that a sufficiently simple application using React is easier to reason about than HTMX. I've had to deal with a simple React codebase and it is a nightmare.

They don't address the exact same markets.

replies(1): >>chatma+ma1
◧◩◪◨
10. chatma+ma1[view] [source] [discussion] 2025-12-04 00:24:39
>>ethanw+4p
Yeah… one of them addresses a market populated by hundreds of thousands of developers with extensive professional experience in the framework, and the other addresses a niche of Python developers who refused to learn JavaScript until somebody hid it from them and called it hypermedia.
replies(1): >>bdangu+Oz1
11. ventur+Oe1[view] [source] 2025-12-04 00:59:01
>>dzonga+(OP)
React lets you inflate your salary.
◧◩
12. samdoe+Yn1[view] [source] [discussion] 2025-12-04 02:25:35
>>switz+fb
Just because something is made possible and you can do it doesn't mean you should!

The criticism is that by allowing you to do something you shouldn't, there isn't any benefit to be had, even if that system allows you to do something you couldn't before.

◧◩◪◨⬒
13. bdangu+Oz1[view] [source] [discussion] 2025-12-04 04:27:32
>>chatma+ma1
100’s of thousands used to use php too :) most developers (roughly 97.56% are terrible/incompetent so going with the herd should tell you you are on the wrong train :)
replies(1): >>chatma+MA1
◧◩◪◨⬒⬓
14. chatma+MA1[view] [source] [discussion] 2025-12-04 04:39:10
>>bdangu+Oz1
Thousands of developers still use PHP… and even more users… Wordpress (43% of web), Facebook (billions of users), Wikipedia (billions of users)…. all PHP.

htmx is a a toy, mildly amusing to play with, built on an insecure foundation that bypasses basic browser security controls and hands a blob of JavaScript to a bunch of backend developers who can’t be bothered to learn it because they think they know better…

No serious project uses htmx and none ever will, because it becomes an unmaintainable mess by the third developer and second year of development.

replies(1): >>bdangu+Ii2
◧◩◪◨⬒⬓⬔
15. bdangu+Ii2[view] [source] [discussion] 2025-12-04 11:53:51
>>chatma+MA1
“No serious project uses [insert any framework/language/…] and none ever will, because it becomes an unmaintainable mess by the third developer and second year of development” if team is incompetent
◧◩
16. lobito+fYa[view] [source] [discussion] 2025-12-07 07:30:03
>>switz+fb
It also gives you a 10 cve
[go to top]