How to use normal CSS without using any modules or external dependencies like CSS module or styled-components in React avoiding class name collision or CSS overriding to other components?
There are at least two ways:
to scope it under a class name, for a certain component:
.employee-data .warning { ... }
to scope it under a certain page
#about-us-page .photo { ... }
2.1m questions
2.1m answers
60 comments
57.0k users