SPAs are useful, not for everything and certainly not for most sites, but bashing SPAs without further thought will only lead back to dark ages of smart backends, postbacks, and huge session states with impossible to scale infrastructure.
Just my 2 cents.
https://htmx.org/essays/when-to-use-hypermedia/
and try to be balanced when presenting it to people.
React had/has the full marketing might of Facebook & now Vercel behind it, htmx has a marketing budget of $0 and the main marketing vehicle is me shitposting on twitter.
He should have started with this paragraph.. because every other language out there doesn't have flaws.
Also, where is the error handling in the htmx example? The React snippet handled that. It's very easy to make contrived happy path examples. What about input sanitation?
I think the author isn't objective at all and makes a poor case for htmx.
There is a lot to unpack here so let’s go step by step. To display text and images using pure vanilla html in an app is doable, no doubt, but let’s be honest, a little simplistic when we want the real thing - Simplicity
But we are in luck! Not only are text and images the vast majority of content on the internet, they also come without the limitations of the other things on the internet.
And this is where htmx, which hits that simplicity sweet spot we are aiming for comes into play.
No matter what language you want to tack on, it has your back and is likely the premier as good as it gets solution for this vast majority.
And guess what, people will be able to search for the text and images on your site so you just have to pop up a little “what did you find on my site?” Form field along the way to start a positive feedback loop, build a community and ultimately head for IPO of course.