Re:Htmx and Web Components: A Perfect Match
by hellcow on Wednesday January 17, 2024 @11:16PM
(#39037755)
This is the exact use-case I found for them, and it’s terrific. I define any tag, e.g. <my-modal>, put normal HTML within it as if it were just a div, and then I can define the callbacks (like adding/cleaning up listeners) and custom attributes in a tiny bit of JS.
[ Parent
| on HN ]
There are no comments on this comment yet.