React allows you to create different components for your application. Since each component has its own stylesheet, you wouldn't want those stylesheets to override one another. The goal of CSS Modules is to protect overlapping class names. The best part is, it is actually simple and straightforward.

3m read timeFrom theaviatorcodes2.hashnode.dev
Post cover image
Table of contents
Advantage of CSS Modules over Regular CSSBEM Naming ConventionCSS Modules

Sort: