Earlier quoted context omitted.
HTMX (and similar) solves a lot of this. It so happens that we end up building two apps one frontend and one backend with SPAs as built today. I'd rather build a lot of it on the server side, and add some dumb interactivity on the client (show/hide, collapse/expand, effects). There is still a place for SPA though.
HTMX does the opposite of this, it requires many more round trips to the server instead of using client side JS to do work.
https://hypermedia.systems/client-side-scripting/
in addition to native html features like , etc.
htmx can often decrease the number of trips to a server because in the hypermedia model you are encouraged to deliver all the content for a UI in one fell swoop, rather than in a series of chatty JSON requests that may be made due to opaque reactive hooks.