@developit blink twice if you think web component interop is problematic for preact 🫣🫠
8 replies
@zachleat lol is it bad if I don't?
@zachleat it's not perfect, mind, but I've never had something come up that was difficult or unwieldy enough that it would have justified a change to Preact or WCs. Using WCs built with Preact and WC's built in Lit rendered by Preact in a bunch of places at work right now actually.
@developit @zachleat The code is minimal, the main things that cause friction are props vs attributes, weirdly named i.e. onX or an overlap with data- due to dash in the fifth spot
@developit @zachleat Oh yea, it works well but these patterns seem pretty widespread afaict
@developit @zachleat The guides on how to do web-components the right way are probably as scarce as Preact, so the combination of them... 😅
@developit no! Would certainly disagree with some points coming from Svelte, Vue, and Solid.js camps though 🫠