DEV Community

loading...

Discussion on: Why I don't use web components

Collapse
mnayeem profile image
Nayeem Rahman • Edited

2: Last I checked, you can use <link rel="stylesheet"... in a Shadow tree.

I like to have @import url("/global.css"); or something similar at the top of any component's stylesheet to implement global themes. A nice and modular solution compared to selectors that penetrate Shadow DOM's.

Edit: Nevermind, I googled FOUC.