4 ms·
Alpine is a lightweight client side framework, not really at all equivalent to htmx.
by jeremyjh 4y ago
Alpine is a lightweight client side framework, not really at all equivalent to htmx.
- mtlynch 4y agoI'm not sure what you mean. htmx and alpine.js are both client-side frameworks. To me, they seem to have similar goals and similar functionality. What do you see as the difference?
- jeremyjh 4y agoThe purpose of htmx is to enable the server to send fragments of markup to update the dom in response to UI events. Alpine.is is purely client side, you may not even have an application server.
- mtlynch 4y agoOh, I didn't realize that. Thanks!
- summarity 4y agoThey're neither different nor similar. In fact they work together, with Alpine managing client side reactive state (NOT app state, just interaction) and htmx managing the actual request model. That's why the htmx docs often refer to Alpine. They should be used in combination, not to displace each other.