.widget {
border: 1px;
}
...
const Widget = () => (
<div class="widget"></div>
);
vs const Widget = () => (
<div class="b1p"></div>
);
You keep saying this is an abuse of CSS and that's not how it was meant to be used, but why is that so important?Obviously, a real application will have more than one css property. Also, your widgets will share styles, usually in a fairly obvious hierarchical way. And your designers will want them all to be consistent.
In this world, it’s far easier to remember that a widget is “.widget”, and that “.rounded-widget” is for the round version of that”, than it is to remember that the former concept is “.b1p .m5 .ib .xyz .pdq .foo” while the latter is “.b1p .m5 .p2 .br10 .xyz .bar”