<ul x-bind:children="items">
<!-- ...li items here can dynamically change -->
</ul>
</div>
Any idea how to implement something like that? Clean and declarative, without having to write verbose MutationObservers and similar with JS ending up with more JS code than HTML 🙂
I tried with https://alpinejs.dev/ but I don't seem to have find an easy way with it either, still end up writing tons of javascript 💩
htmx?
I'd use something like petite-vue tbh
Htmx can't solve this problem nicely. I would need to write JS to setup listeners, which count items and then set display none on the text. This is not declarative at all. Or maybe you know something about HTMX I don't yet know?
htmx solves this by pairing with a backend that has a templating engine
I know 🙂 yet I don't want to reload the entire list, and hence I need to do it reactively in the browser with js with the hmtx:afterOnLoad
Обсуждают сегодня