3 ms·
> But htmx doesn't update the body content of the document via JavaScript APIs. Yes, it does. > It updates them via HTML APIs. It updates then by using JS co
by dragonwriter 4y ago
> But htmx doesn't update the body content of the document via JavaScript APIs.
Yes, it does.
> It updates them via HTML APIs.
It updates then by using JS code calling DOM APIs. Just like any other SPA.
> the content coming over the wire from the backend is HTML, not JSON.
The content coming over the wire being HTML, JSON, XML, or text/plain has no bearing on whether the JS framework inserting the result of processing it somewhere on a single pre-existing page is a SPA framework.