3 ms·
I thought styled components solved this issue pretty well. Your markup (JSX) is composable, and so is its styling (styled components with raw CSS or object syn
by chatmasta 3y ago
I thought styled components solved this issue pretty well. Your markup (JSX) is composable, and so is its styling (styled components with raw CSS or object syntax).
Unfortunately, many developers using styled components don't realize the power of their composability, and end up just writing one level deep for each component. But in fact you can wrap styled components and compose them together...
- dcre 3y agoStyled components are no different than Tailwind in this regard, and this is precisely how Tailwind is meant to be used. You define a component and use that.