3 ms·
So, by your own words, in htmx: > the new API is simply reflected in the new HTML returned by the server Whereas with SPAs (my words) > the new API is simply
by dalmo3 3y ago
So, by your own words, in htmx:
> the new API is simply reflected in the new HTML returned by the server
Whereas with SPAs (my words)
> the new API is simply reflected in the new json returned by the server
I think I prefer the mental model of the api serving data and client rendering it.
- CRConrad 3y agoHTML is the data format of Web pages. That's what the client, the browser, is built to render.