News for hackers. Stuff that matters.
Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o... by jon1628492 on Tuesday November 23, 2021 @12:58PM (#29320906)
I'm new to htmx and alpine, but isn't alpine's global store what you'd want in this case? https://alpinejs.dev/magics/store
Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o... by saimiam on Wednesday November 24, 2021 @03:02AM (#29327835)
(I'm not very familiar with Alpine and htmx but I'm comfortable with Vue and React.)

Htmx pulls html content from the server and replaces inner|outerHTML with it. A JSON object (of the type React/Vue and presumably Alpine use) isn't a good fit to store html blobs and state.