3 ms·
I kinda like this approach. You can change the combination of used APIs for different cases. "Widget" that you provide for partners to put on their web pages?
by tuzemec 3y ago
I kinda like this approach.
You can change the combination of used APIs for different cases.
"Widget" that you provide for partners to put on their web pages? Of course you'll use shadow DOM, because you don't know the page context, surrounding styles, etc.
A component to share on different parts of your site - you can skip the shadow DOM, because you share common styles everywhere, and probably you want to inherit some of them.
- zaphar 3y agoI think in terms of the implementation keeping them separate and composable is very useful. I think the marketing around it could have emphasized it a little more but that's water under the bridge really.