Closed amiralibhatti closed 4 years ago
Solution: you don’t need to change anything in those files if you’re using a new version of react it automatically comes with that feature. All you need to do is rename the CSS file with [yourFileName].module.css and it should work!
Solution: you don’t need to change anything in those files if you’re using a new version of react it automatically comes with that feature. All you need to do is rename the CSS file with [yourFileName].module.css and it should work!
Thanks Friend! I have found it already but thanks a lot!
it work great
I want to use the CSS module for adding some CSS style to my component. I used "npm run eject" command, but in the config folder, I couldn't find webpack.config.dev.js and webpack.config.prod.js files. Of course, I'm using the latest version of reactjs.