December 2019
Intermediate to advanced
598 pages
12h 21m
English
CSS is global in nature. So, if we use a CSS class name called container within a Header component, it would collide with another CSS class called container in a different CSS file if a page references both CSS files:

As the app grows and new team members join the development team, the risk of CSS changes impacting areas of the app we don't expect increases. We reduce this risk by being careful when naming and structuring our CSS by using something such as BEM.
Reusability in CSS is also a challenge. CSS custom properties give us the ability to use variables, but they are global variables and are not ...
Read now
Unlock full access