..or the struggles with contextual styling. — Using CSS components is somewhat straightforward. We add the markup and give it the component’s class name and all is good. Where it gets trickier is when we try to nest components. And when they need to be tweaked based on the context. Where should the styles be defined? It’s a question I’ve been asking myself a few times and what this article is tryi
![Nesting Components](https://cdn-ak-scissors.b.st-hatena.com/image/square/b6db687f0ca5c523753e8539a27ca4a250d8e8e3/height=288;version=1;width=512/http%3A%2F%2Fsimurai.com%2Fimg%2Fposts%2Fnesting-components-2.png)