4 ms·
To me, it seems more like favoring composition of small parts over inheritance of everything. That's what CSS is, a HUGE inheritance graph, just even more conv
by LinXitoW 4y ago
To me, it seems more like favoring composition of small parts over inheritance of everything.
That's what CSS is, a HUGE inheritance graph, just even more convoluted, because absolutely every "class" is part of the same graph.
- satvikpendem 4y agoIf you're not using scoped styles, yes. However, in an apps these days most people use something like CSS modules or CSS in JS which automatically scope styles. Creating classes is to me more of a composable model that still preserves the ability to refactor easily as well as being able to be readable.