5 ms·
Can someone confirm that this and htmx are JavaScript libraries, for to novice? I'm just confused why you'd not just use JavaScript? What's the benefit? From m
by account-5 4y ago
Can someone confirm that this and htmx are JavaScript libraries, for to novice?
I'm just confused why you'd not just use JavaScript? What's the benefit? From my very limited experience these seem to mess up the html and make that harder to reason about. Fully aware I am showing my ignorance, but genuine questions.
- recursivedoubts 4y agothey are libraries written in javascript htmx extends HTML as a hypermedia, staying as close as it can to the original, REST-ful model of the web while allowing you to achieve more from a UX perspective: https://htmx.org/examples https://htmx.org/examples _hyperscript is an event-oriented scripting language designed to embed cleanly in HTML and that complements htmx, which fires a lot of events the vision is htmx for syncing w/ a server and hyperscript for light front end work to augment it. the reason to use them over JavaScript is that, arguable, htmx is closer to the intended networking model for the web (REST, HATEOAS) and hyperscript allows higher level scripting than JavaScript (e.g. async-transparency eliminates the need to deal w/ promises, CSS literals directly in the language eliminates the need to work w/ gronky DOM APIs, etc.) this vision will not speak to everyone, which is fine