3 ms·
How's it not a SPA, if you're updating the DOM in JS without a full page reload? Sorry, I read a load of stuff about React, before I came to any explanation of
by denton-scratch 4y ago
How's it not a SPA, if you're updating the DOM in JS without a full page reload?
Sorry, I read a load of stuff about React, before I came to any explanation of HTMX. Turns out, it's loading fragments of HTML into the DOM (without reload), instead of loading fragments of JSON, converting them to HTML fragments client-side, and injecting the resulting HTML into the DOM (without reload).
So I stopped reading there; perhaps the author explained why HTMX solves this at the end (consistent with the general upside-down-ness), but the "is the future" title was also offputting, so excuse me if I should have read the whole article before commenting.
I never bought into the SPA thing. SPAs destroy the relationship between URLs and the World Wide Web.
- robertoandred 4y agoSPAs work with complex, relevant, and unique URLs perfectly fine.