Amy Blankenship
Aug 17, 2024

--

At that point, can you remind me exactly why you're not just using the style attribute?

I think the problem with the composing is that if you need context-specific styling on composed components, now you have to inject in all the independently-styled components as children or some other prop that takes a component, and now why are we making a component again?

This is so back-assward. The people who wrote and love TW just really don't understand the true power of CSS. Unfortunately, their attitudes have infected other things like the SASS linting library, so it is getting really hard to write good code in the modern ecosystem.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)