News for hackers. Stuff that matters.
Re:Show HN: µJS, a 5KB alternative to Htmx and Turbo with ze... by heddycrow on Saturday March 07, 2026 @03:32PM (#47291197)
It's about time browsers start supporting something like this natively. Fingers crossed.

I'll be checking this out. Any chance you (or anyone) has had a run with this lib + web components? I'd love to hear about it.

Re:Show HN: µJS, a 5KB alternative to Htmx and Turbo with ze... by amaury_bouchard on Saturday March 07, 2026 @05:14PM (#47291968)
I haven't tried it personally, but I don't see any reason why they wouldn't work well together. µJS manipulates the DOM via fetch and swapping, while web components live in the DOM like any other element. The only thing to be aware of is that if µJS replaces a fragment containing a web component, connectedCallback will fire again, which is the expected behavior. Would love to hear your feedback if you give it a try!
Re:Show HN: µJS, a 5KB alternative to Htmx and Turbo with ze... by heddycrow on Saturday March 07, 2026 @09:28PM (#47293750)
I certainly will. I already have this on my stack. Will feedback + thanks!