Skip to content
Advertisement

i have “react-scripts”: “^4.0.3”, installed but still i’m not able to use Css Modules

JavaScript

Iam importing these styles here but nothing is being applied to the heading

JavaScript

Advertisement

Answer

According to create-react-app documentation on CSS modules you should name your file styles.module.css and then import it like you already did

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement