top | item 40475835

(no title)

__oh_es | 1 year ago

No. I may not be doing it all justice but my explanation would be that alpine is for client side interactivity and Htmx handles server interactions/server state sync.

A form example; htmx would handle a form submit response (eg insert the server response of a html todo item in a todo list on the dom), and alpine would handle the reset of the form values.

Htmx and co have their own alpinejs offering called _hyperscript. Definitely one to check out if you’re interested - quite pleasant to work with.

discuss

order

No comments yet.