3 ms·
It's kinda right. React says manage complexity through encapsulation, CSS as intended to be used says impale straight through the layers via global namespace an
by Spivak 2y ago
It's kinda right. React says manage complexity through encapsulation, CSS as intended to be used says impale straight through the layers via global namespace and a brittle rats nest of interdependency via the side-channel of selectors.
CSS as simply a DSL for styling components and hooks into the layout engine like how other GUI frameworks work is fine, but you don't need a
framework for that.
We all generally agree that
inheritance is hard to keep clean but in CSS it's venerated for some reason.