5 ms·
So htmx works flawlessly with any other JS library? Asking because of my limited knowledge. If you happen to have a blog post or something on that, would be he
by wg0 4y ago
So htmx works flawlessly with any other JS library?
Asking because of my limited knowledge. If you happen to have a blog post or something on that, would be helpful.
- neurostimulant 4y agohttps://htmx.org/docs/#scripting https://htmx.org/docs/#scripting
- egeozcan 4y agoI don't like libraries creating their own languages, but if one had to, they better have docs like you have. Amazing.
- PaulHoule 4y agoI gotta start blogging about that system because it really is cool. HTMX is not too different from Jquery in terms of how it works so it is compatible with most if not all JS libraries. In my case I have <script src="https://unpkg.com/htmx.org@1.8.4" integrity="sha384-wg5Y/JwF7VxGk4zLsJEcAojRtlVp1FKKdGy1qN+OMtdq72WRvX/EdRdqg/LOhYeV" crossorigin="anonymous"></script> <script src="https://d3js.org/d3.v7.min.js"></script> in my header and I write JS that uses d3.js from a <script> tag, I am not messing around with a Javascript build system but I see no reason why you couldn't have a react app that is compiled and lives in a <div> inside an htmx page.
- arcanemachiner 4y agoIn my experience, yes. A large part of playing nice with other JS libraries is that HTMX works with the DOM in the browser, instead of creating a Virtual DOM (VDOM) like React and Vue (and others, eg. Solid.js) do, which leads to a lot of libraries only working with those platforms they're made for. Which is a great tragedy IMO.