3 ms·
> poorly explains what it is Seems clear to me but I've been watching this project grow for a few years now. If you read the brief introduction, motivation, an
by sibit 3y ago
> poorly explains what it is
Seems clear to me but I've been watching this project grow for a few years now. If you read the brief introduction, motivation, and quick start on the homepage what do you think the project does?
> why would you want to use something like this
I would agree that part wasn't clear to me either, at least not right away. When compared to something like a SPA the state has to persist on the server while an ephemeral state exists on the client. With HTMX the state only needs to exist on the server. If this sounds like the MPAs of yesteryear, it is. You render the HTML using the frameworks/tools/languages you fancy. HTMX provides custom attributes you can use to update content within a page without having to reload the entire page.
- criddell 3y ago> With HTMX the state only needs to exist on the server. Is this HATEOAS?
- varispeed 3y ago> and quick start on the homepage what do you think the project does? It adds some special attributes to HTML that magically perform some logic and it is not clear how and why. Why would I use something like this over React? What this thing is trying to solve? > You render the HTML using the frameworks/tools/languages you fancy. HTMX provides custom attributes you can use to update content within a page without having to reload the entire page. I still can't see what's the point of it. Why would I want to do it?
- sibit 3y ago> I still can't see what's the point of it. Why would I want to do it? It depends on how you like to build projects. If you like the current state of client-side rendering there is no point to using HTMX. If you like server-side rendering (my personal preference) then HTMX fills the gap of doing partial DOM updates without needing to reload the entire page. Some people will argue about perf metrics until they're blue in the face. I mostly rely on personal preferences.
- varispeed 3y agoIn the olden days I remember having backend returning an ID of the DOM element to update and a tiny function would look at it and update. There was no need for HTMX.