3 ms·
I’m confused here: htmx is not an MPA. If it were, then you’d call a SSR React site a MPA too. The core behavior of a SPA is that it loads pages via ajax and j
by feupan 5y ago
I’m confused here: htmx is not an MPA. If it were, then you’d call a SSR React site a MPA too.
The core behavior of a SPA is that it loads pages via ajax and just replaces content in the current “document”. The difference between a simple SSR React site and this is that React will only fetch JSON and templates after the first load, whereas this one fetches whole chunks of HTML.
An htmx site still has to deal with all the pitfalls of SPAs, namely non-native navigation and history, and memory leaks.
Just like htmx may have solved some of these issues, a (other framework) SPA can do too.
- recursivedoubts 5y agothere is a spectrum, as Mr. Harris discusses in his talk the core difference between htmx (and hotwire, unpoly, etc) and most SPA frameworks is that they stick closer to the original hypermedia model of the web, thereby saving a lot of complexity and additional abstraction