Skip to content

Instantly share code, notes, and snippets.

@danny-andrews
Created October 9, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danny-andrews/383d6e4a3d27575605ffd5721046e595 to your computer and use it in GitHub Desktop.
Save danny-andrews/383d6e4a3d27575605ffd5721046e595 to your computer and use it in GitHub Desktop.
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