3 ms·
To be fair there are other ways of solving that problem. If you're worried about class overlap, you can define unique/hash-based classnames on build with css-l
by huehehue 9y ago
To be fair there are other ways of solving that problem.
If you're worried about class overlap, you can define unique/hash-based classnames on build with css-loader.
If you're still worried about aggressive stylesheets destroying your components, you can wrap them in however many classes you see fit (some people might use `.n.e.a.t.l.i.b .cool-class` instead of polluting component code with CSS).
As far as CSS scaling poorly, that's really up to you. I find that it's an afterthought to most people, and full of weird hacks and `!important`s a few months into a project. That's fine if that's how you want to do it, but it's not an inevitability.
(I say this as someone working on a component library that's used on over half a million sites)