Post

Attaching styles to html elements. We don’t really have a good way to do that today. CSS modules are ok, but you still have to create two files just to make a button. Vue and Svelte are much better, but there isn’t an equivalent for React to my knowledge.

0 reposts4 likes

And it's fast, simple, & forward compatible with new CSS features because it's just CSS: 1. Write CSS in a css`...` tag 2. A small helper creates a constructible stylesheet from it 3. New element instances attach the stylesheet to their shadow roots Fully compatible with native CSS modules too.