Using CSS modules in React js

preview_player
Показать описание
Using CSS modules in React js
Рекомендации по теме
Комментарии
Автор

i did this but i have one js file (webpack.config.js) in config folder

codercoder
Автор

If you have only one webpack.config.js file you don't need to go through this process. Instead just change the name of the CSS file to YourCSSFile.module.css (ex: if your CSS file name is App.css, you should change it to App.module.css) and import in your JS file(In your JS file, import classes from './App.module.css')

zcaur
Автор

instead of dealing with any configuration, better's change the file name to have a module ex: styles.module.css

iurylippo
Автор

why I only have 1 config file? only webpack.config.js? and I can't find the test: css$ inside there. Help please

DarkVortexSoul
welcome to shbcf.ru