3 ms·
Instead of this ridiculous package, you can use packages with more stable specifications such as alpine.
by pictur 3y ago
Instead of this ridiculous package, you can use packages with more stable specifications such as alpine.
- arcanemachiner 3y agoI've seen this misconception a lot, but HTMX and Alpine do two different things. Alpine enables client-side reactivity and does not require a round-trip to the server. Say, clicking a button and incrementing a counter on the page. HTMX enables something more akin to server-side reactivity. You could use it to modify, say, a single element in a list of elements. The crucial difference is that HTMX makes a call to a server. This means you would use it when you need to read/write data to/from the server. Alpine provides client-side reactivity. HTMX provides server-side reactivity.
- wrapperup 3y agoYup. It's pretty common to see Alpine + HTMX used together since they are both HTML first. I've heard web components work well with HTMX too.