4 ms·
I this not similar to htmx?
by account-5 1y ago
I this not similar to htmx?
- nchmy 1y agoHtmx is just a js library that helps with Ajax. Astro runs on your server to largely do static site generation, and also has htmx-like capabilities. I prefer htmx and, better yet, datastar as they're backend-agnostic.
- jadbox 1y agoWhy do you prefer datastar vs htmx? Afaik htmx tends to allow progressive enhancement without JS, while datastar requires JS to work.
- nchmy 1y agoHtmx IS JavaScript... Datastar does everything htmx does and much more. And, iirc, is also smaller. Just explore their site, docs, essays etc
- jadbox 1y agoOh okay. While Htmx-the-lib is JS, the standard practice is to make the site progressively enhanced by Htmx such that it still works without JS and improves accessibility for screen readers. While this could be possible with Datastar, I've read that it's generally more work to enable progressive enhancement, but maybe that's not a goal.
- nchmy 1y agoAgain, datastar does everything htmx does out of the box, and far more.