4 ms·
I'm still waiting for preact.js + htmx.org mashup. It probably exists somewhere, maybe https://docs.astro.build/en/concepts/islands/ https://docs.astro.build/en
by Xeoncross 4y ago
I'm still waiting for preact.js + htmx.org mashup. It probably exists somewhere, maybe https://docs.astro.build/en/concepts/islands/ https://docs.astro.build/en/concepts/islands/ or something.
I just want a quick way to throw some react hooks or web components into a dom element using a library that is less than 1,000 lines of code.
- BiteCode_dev 4y agoWhy do I hear so much about htmx and so little about unpolly, which seems everything htmx promise but with additional high level primitives for the common task?
- omnimus 4y agoUnpoly dev is german nobody cares about abd doesnt go on podcasts vs htmx author is american that does marketing well. Same goes for alpine js where the author is “famous” dev. Pretty typical with open source projects tbh. Many of them win thanks to marketing more than anything else.
- diordiderot 4y agoAlso Htmx got picked up early by the Django community
- BiteCode_dev 4y agoDon't why you have been downvoted, while there are famous dev outside of the US, american identity and marketting does sell better than the german one.
- omnimus 4y agoIts also easier to be comfortable on a english podcast when you are a native speaker. Plus i think US devs understand how important marketing is more than anybody else.
- omnimus 4y agoSorry but thats not a good combo. htmx is literally html extension. it is aimed at adding interaction to static html. Preact/react are completely opposite approach to that.
- dmix 4y agoA lot of people still mix jQuery and React in the same parent project. Mostly just via legacy support when using existing serverside frameworks but still sometimes having the fallback easy DOM/event stuff is just easier when you need to get it done (keeping the HTML/views isolated from each other of course so you don’t mix concepts). It doesn’t sound pretty but they can serve dual purposes. I don’t know enough about HTMX on how it would work implementation wise though and what type of setup.
- omnimus 4y agoI am sure you can do something with it… But htmx is all about replacing server rendered html with server rendered html partials. I would like to see what reacts vdom does when you keep ploping some partials into DOM it thinks it controls.
- dmix 4y agoYeah they’d have to be isolated from each other if that’s the case. Which would defeat the value if it’s a small project starting from scratch with a limited scope frontend-wise (which htmx typically implies whenever I’ve seen it used or mentioned).
- NerdiOrg 4y agoWhat is the difference between html partials and scoped components?
- Xeoncross 4y agoI probably didn't explain it well enough. Preact is the tiny alternative to React (I still think preact could be smaller if they only focused on hooks). I htmx is too bloated, while it's much smaller than the React codebase - I want the tiny, <1k loc alternative that literally just makes working forms and href links into dynamic fetch() responses and maybe adds additional support for auto-refresh from websockets or SSE.