I created a new react app by Create-React-App and I tried to use CSS Modules, but it's doesn't seem to work anymore. here is my simple usage of CSS modules :
import styles from './myStyle.css';
function App() {
return (
<div className={styles.container}>
</div>
);
}
It's work on my older project, the only differences in my older project with the new one is the react-scripts version.
my new project dependencies :
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.0"
}
my old project dependencies :
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "2.1.8"
},
Has anything changed in react-scripts v3 ?