by have_faith · 8y ago · 0 comments
You really don't need nested selectors in most cases, since you're rarely thinking about the page context when dealing with a single react component.
Styled components does namespacing for you and it's easy to share styles, colors, etc. across components for reusability (a la mix-ins) and portability via the props abstraction.
I've built a ton of front-end applications, both pre- and post-react. I've tried a ton of implementations of CSS, including just using PostCSS. After all my time investigating the best way to approach CSS, I think style-components is the best solution to use with React.
https://github.com/streamich/freestyler/blob/master/docs/en/...
Currently i'm working with Emotion (https://github.com/emotion-js/emotion) and enjoying it
I think CSS in JS is moderately popular. But I would hazard a guess that there are still at least as many people using SASS.