DEV Community

Discussion on: Why I don't use web components

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

A nice read! Wish I was a googler, I think I have discovered a way to handle FOUK in web components, I wrote a tiny library around it.
npmjs.com/package/reactive-css-pro...

The library needs a little fix-up 🙄, it's on my to-do list, anyway the idea is kind of a better version of css in js, predifine css custom properties in the document, then each web-component takes ownership of its own css property having for lack of a better word, data transfered them to the :host. The result is no FOUK.