The main problem it's trying to solve is not that React is bad, but that people are using React to build simple pages which is unnecessary, like taking a private jet out to the suburbs.
The main problem it's trying to solve is not that React is bad, but that people are using React to build simple pages which is unnecessary, like taking a private jet out to the suburbs.
JS devs running around talking about sever side rendering and hydration and how that can be good for caching... They are acting like they discovered fire and it's just 20 year old web tech. (Akami anyone).
React, is a prime example of Conways law, and a Facebook product for a Facebook problem. And I will tell you that if I was shoving personalized content down the wire, or a real web app react makes sense. It is a good idea.
On the other hand, should I serve a blog post with react? Probably not. How about that product page for your ecom-store? React might not make sense there either. But HTMX, or jQuery or something that runs after render would be amazing for riding the cache.
And this is where we get into the problem with "modern" js. There is a ton of amazing tooling, but its a lot of it is all (react and the whole stack that comes with it) or nothing (HTMX) ... I think that there is a market gap because a lot of us know that we need something in-between.
There is a reason that 70 percent of sites still have jQuery see: https://archive.is/jYEZh . And even if that number is half that, it shows that the JS market still has a massive gap.
Hopefully by understanding people's opinions, we can all make better engineering decisions though.
I think
The more appropriate analogy is, you do not need a sky-crane to build a single family home.
In our case that was useful because it aligned with our business goals, although I didn't particularly care for it. I wonder how many bloated, React-cargo-culting sites are actually not using that bloat, vs using it for user-invisible and/or user-hostile purposes. Are devs out there building personal blogs as React SPAs still?
https://htmx.org/essays/when-to-use-hypermedia/
But i also think you can push htmx a lot further than many people suspect with the judicious scripting:
https://hypermedia.systems/client-side-scripting/
on the gripping hand, here's a guy building a crazy-ass clojure-based spreadsheet w/ htmx + scripting:
https://fxtwitter.com/RustyVermeer/status/172669753149162316...
¯\_(ツ)_/¯