React TL;DR – a human filter for most useful tech content.

All posts

The styled-components happy path

When we extend the component mindset to our CSS, we gain all sorts of new superpowers:

  • The ability to know, with confidence, whether it’s safe to remove a CSS declaration (no possibility of it affecting some totally-separate part of the application!).
  • A complete lack of specificity issues, no more trying to find tricks to bump up specificity.
  • A neat and trim mental model that fits in your head and helps you understand exactly what your pages will look like, without needing to do a bunch of manual testing.