7 ms·
If you can't understand what it's doing from the source code, maybe read the documentation? I'm not a huge fan of Styled Components, but it's a way to write pr
by madeofpalk 8y ago
If you can't understand what it's doing from the source code, maybe read the documentation?
I'm not a huge fan of Styled Components, but it's a way to write properly encapsulated styles for just that moment - You write 'regular CSS' that's scoped to exactly that component, so it can't leak out and affect other parts of your site.
- hguhghuff 8y agoI read the source code because I was trying to see how a solved problem needed so much code to implement.
- madeofpalk 8y agoI don't think Scoped CSS is a "solved problem". Well actually, I think CSS Modules solved it in the most "perfect" way, but I'm willing to believe that others have problems I haven't experienced before :)