29 ms·
https://htmx.org/ https://htmx.org/ That does 90% of what I need when sprinkling backend AJAX-y interactivity on a straight HTML page with a backend that sends
by girvo 5y ago
https://htmx.org/ https://htmx.org/
That does 90% of what I need when sprinkling backend AJAX-y interactivity on a straight HTML page with a backend that sends JSON or HTML back.
https://htmx.org/examples/inline-validation/ https://htmx.org/examples/inline-validation/
For more jquery-esque fine-grained control for building custom elements/components on my pages I turn to:
https://alpinejs.dev/ https://alpinejs.dev/
I love both of these libraries.
- egeozcan 5y agoI also love Alpine.js, but after implementing a dropdown with it, I'm thinking maybe sometimes it's too verbose especially combined with tailwind. https://gist.github.com/egeozcan/cdc90e290271f3ea4b6801dcf1aad719 https://gist.github.com/egeozcan/cdc90e290271f3ea4b6801dcf1a... I should mention, I did want it to be quick and dirty (it's a prototype), but well, it could have been a bit more concise. Double set parentheses come from the templating system I use BTW, if it wasn't clear. Being HTML oriented is very cool, and you get a lot of things for free, but I keep saying "oh this would have been much easier with react" a bit too much.