| ▲ | heddycrow 3 hours ago | |
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. | ||
| ▲ | 3 hours ago | parent | next [-] | |
| [deleted] | ||
| ▲ | amaury_bouchard 2 hours ago | parent | prev [-] | |
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! | ||