When I first started using styled-components, it seemed like magic ✨. Somehow, using an obscure half-string-half-function syntax, the tool was able to take some arbitrary CSS and assign it to a React component, bypassing the CSS selectors we've always used. Like so many devs, I learned how to use styled-components, but without really understanding what was going on under the hood. Knowing how it w
![Demystifying styled-components](https://cdn-ak-scissors.b.st-hatena.com/image/square/53b819840e9868c6c966a90ff3f20fadcc17872d/height=288;version=1;width=512/https%3A%2F%2Fwww.joshwcomeau.com%2Fimages%2Fog-demystifying-styled-components.png)