2 ms·
These days, based on the requirements I would suggest using CSS Modules [1]. On the other hand if this would be an overkill ( small landing page ), then basica
by drinchev 10y ago
These days, based on the requirements I would suggest using CSS Modules [1].
On the other hand if this would be an overkill ( small landing page ), then basically whatever you would choose it would be okay, because rewriting the stylesheets will take less than a day.
If the requirements doesn't allow that and you are building a huge complex UI, then I would advise >against styling tags<. There have been at least 100 times in my career, where I discover someone styled an `a` element, that I would like to become a button. My approach is to use class names everywhere.
1 : https://github.com/css-modules/css-modules https://github.com/css-modules/css-modules