Software engineering engineer at a national public broadcaster. Best practices / developer experience / agile / diversity and inclusion / psychological safety
After comparing a lot of different styling libraries I ended up choosing styled-components for my website too, for the same reasons that you mention in your post.
Ironically, the one issue I had with it was it would sometimes mess up the generated class names in the production build. π
Software engineering engineer at a national public broadcaster. Best practices / developer experience / agile / diversity and inclusion / psychological safety
After comparing a lot of different styling libraries I ended up choosing styled-components for my website too, for the same reasons that you mention in your post.
Ironically, the one issue I had with it was it would sometimes mess up the generated class names in the production build. π
Wow! I never went through this! Did you only use styled-components or something else along with?
No other styling libraries, but I did use it with some other tools that might also do some weird stuff for production builds.
Itβs been several months since I ran into the issue, so I assume theyβve fixed it by now. π
This is very likely! :P