How to config CSS-modules in React 16.5 new version?

How to config CSS-modules in React 16.5 new version?
0

#1

Hi, I’m not able to configure css-modules in react 16.5 I have read the officail documents. I don’t get some idea If you have some experience about Css-modules configuration with eject So, tell me annd all the webpack.config.dev code has changed So

Best regards


#2

If you are running a create-react-app template. You want to run this command. npm run eject


#3

I knew about that But before we are configured the CSS by eject by including

modules: true,
localIdentName: '[name]_[local]_[hash:base65:5'

but Now I’m not getting the old place to put these line code there and Use Css class by

<div className={ class.name }>

Like this

Now how Can I do this in new version which is up-to-date.