News for hackers. Stuff that matters.
Re:Tailwind Is a Leaky Abstraction by emmacharp on Wednesday November 30, 2022 @09:51AM (#33801518)
But can't you do the same with CSS ?

If every selector in a file begins with the component class, isn't it the same as writing styles in the component JS file ? I mean, the only real benefit I see is the forced encapsulation in JS compared to "soft" encapsulation in CSS. But, it's something so trivial to learn and practice that the soft part shouldn't be an issue. And if it is, then it is time to learn some rigour, no ?

There are no comments on this comment yet.