News for hackers. Stuff that matters.
Re:Create React App 2.0: Babel 7, Sass, and More by davman on Tuesday October 02, 2018 @04:17AM (#18119664)
I wrote a bit[1] about CSS Modules with React, but interestingly it looks like CRA isn't using babel-plugin-react-css-modules so I'm trying to figure out what they're doing instead.

[1] https://dev.to/daveirvine/postcss-with-css-modules-andreact-...

Re:Create React App 2.0: Babel 7, Sass, and More by ascorbic on Thursday October 04, 2018 @01:17AM (#18137376)
It's perfectly fine to just use css-loader to handle CSS modules. No need for babel. Just do:

   import styles from "./style.css";

   <Component className={styles.myClassName} />