3 ms·
Either your html becomes verbose or your css becomes inscrutable. Pick your poison.
by math_dandy 3y ago
Either your html becomes verbose or your css becomes inscrutable. Pick your poison.
- chatmasta 3y agoI 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.