3 ms·
i am the creator of htmx i don't view htmx as "better" than react. htmx extends HTML as a hypermedia and makes a lot of more advanced UX patterns available wi
by recursivedoubts 3y ago
i am the creator of htmx
i don't view htmx as "better" than react. htmx extends HTML as a hypermedia and makes a lot of more advanced UX patterns available within it. This makes HTML a viable option for a larger set of problems than most web developers would suspect today.
However, hypermedia has fundamental limitations due to the trade-offs it makes. So there are still times when something more sophisticated, such as React, will be the better approach.
I have written an essay on when hypermedia is appropriate and when it isn't here:
https://htmx.org/essays/when-to-use-hypermedia/ https://htmx.org/essays/when-to-use-hypermedia/
There are times when htmx is going to be very successful when compared to react, such as here:
https://htmx.org/essays/a-real-world-react-to-htmx-port/ https://htmx.org/essays/a-real-world-react-to-htmx-port/
But that is not every time. And in that example they still used StimulusJS for "islands of interactivity" within the application.
I recognize that a lot of htmx users really dislike React, in particular, and, frankly, I'm not a huge fan of it myself. However I would prefer a more balanced take on the situation in general, and that software developers focus on the underlying ideas (hypermedia, HATEOAS, the uniform interface) rather than the specific tools. (I will note that there are other great hypermedia oriented JS libraries out there such as unpoly, hotwire and livewire)
Finally, if you've read this far, we have recently released our book on hypermedia systems:
https://hypermedia.systems https://hypermedia.systems
- pull_my_finger 3y agoThanks for your hard work. I've actually been periodically checking on the hypermedia systems book, and glad to see it's finally been released. Do you have any plan to sell the ebook on a more open platform? PDF or EPUB on leanpub/smashwords/gumroad etc? I can read it online in the meantime, but I'd be happy to purchase if it were more generally available to non-kindle readers.
- recursivedoubts 3y agowe've talked about it what's the best (most open) place to offer an epub edition? you can also go to the book-on-one-page: https://hypermedia.systems/hypermedia-systems/ https://hypermedia.systems/hypermedia-systems/ and print it as a PDF if you'd like