import { render } from 'react-dom' ; import cssModules from 'react-css-modules' ; import styles from './index.css' ; const Button = ( ) => < button styleName = "button" > Click me ! < /button>; / / This is for React CSS modules const EnhancedButton = cssModules ( Button , styles ) ; render ( < EnhancedButton />, document.querySelector('#root')); / / This is for React CSS modules