4 ms·
1 - It’s easy for style bugs to get introduced when someone updates the html and forgets the css. 2 - It’s simpler to have styles that depend on js vars/parame
by danenania 2y ago
1 - It’s easy for style bugs to get introduced when someone updates the html and forgets the css.
2 - It’s simpler to have styles that depend on js vars/parameters when components handle their own styling.
Encapsulation, in other words.