4 ms·
The styles are already coupled to the component anyway, so what's your problem with putting them in the markup? The alternative is making up arbitrary class nam
by wildrhythms 3y ago
The styles are already coupled to the component anyway, so what's your problem with putting them in the markup? The alternative is making up arbitrary class names and putting the styles in a separate file: now you've added an extra layer of mapping that the developer after you has to grok.
- ricardobeat 3y agoPeople don’t seem to mind the 7 layers of mapping between their markup and HTML, why are styles different? I find that much more of a problem when it comes to understanding what’s happening for the average dev.