Skip to content

Instantly share code, notes, and snippets.

@gitsebs
Created August 17, 2016 17:08
Show Gist options
  • Save gitsebs/0c4a1e1dbf227b117652a04948daa000 to your computer and use it in GitHub Desktop.
Save gitsebs/0c4a1e1dbf227b117652a04948daa000 to your computer and use it in GitHub Desktop.
# CSS file #
.className {
color: $color;
margin: 50px;
}
# React component #
import styles from './styles.scss'
const Component = props => {
const class = styles.className({
color: 'blue'
})
return <div className={class}></div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment