Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Do You Really Need react-css-modules?: Side-effects
// With css-loader
import styles from './styles.scss';
export default () => <div className={styles.myClass}>Hi</div>;
// With react-css-modules
import './styles.scss';
export default () => <div styleName="myClass">Hi</div>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment