DEV Community

Discussion on: πŸ’… Styled-Components: Extending Children

Collapse
 
bendman profile image
Ben Duncan • Edited

Personally I don't mind the use of className for targeting children, as it solves a few of the problems mentioned here by specifying which element you're targeting. As long as you follow some clear naming convention like BEM to avoid conflicts it sounds like a fine idea to me, reminiscent of vanilla CSS.

I'm certainly open to hear other opinions though!