This is a good point.
Jonathan Z. White

If you are prepared to pass styling information *into* a component, why not define the styling as CSS classes (or SASS/Stylus modules) and the component as JS? CSS-in-JS is an anti-pattern IMO as it leads to tight-coupling between style and behaviour as Julius Koronci pointed out. Injecting the style into the components removes the tight-coupling, but you don’t need to use CSS-in-JS to have loosely coupled, reusable components.

Show your support

Clapping shows how much you appreciated Brett Uglow’s story.