CSS modules is an improvement over existing CSS that aims to fix the problem of global namespace in CSS; it enables you to write styles that are local by default and encapsulated to your component.
Our large team of engineers use this front end development guide
Yangshun Tay

This is not true. CSS modules doesn’t fix the global name space. It just emulate a closed css scoped by adding hash to class names. The css scope still remain global and every global css will effect all elements.

If i link a style.css in the index.html it will effect all the document.

The only way to have a true css encapsulation is switching to Shadow DOM.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.