Last active
October 22, 2017 19:10
-
-
Save epegzz/df5a4eb725fea03fd1f72eef0a4e29f1 to your computer and use it in GitHub Desktop.
CSS inline styles, CSS Modules, ReactRouter 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import styles from './MyComponent.scss'; | |
function MyComponent(props, context) { | |
return ( | |
<div className="my-component-container"> | |
<h1 className="my-component-title">Hello, world!</h1> | |
<div className="my-component-body"> | |
Here goes some more text… | |
</div> | |
</div> | |
); | |
} | |
export default withStyles(styles)(MyComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment