Last active
November 7, 2017 21:37
-
-
Save indreklasn/19f39aae661882990ada6295afe5cb4b to your computer and use it in GitHub Desktop.
css-in-js example
This file contains hidden or 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
// CSS-in-JS aphrodite example | |
import { StyleSheet, css } from 'aphrodite'; | |
const styles = StyleSheet.create({ | |
text: { | |
backgroundColor: 'black', | |
color: 'white', | |
}, | |
}); | |
<p className={css(styles.text)}>Hello CSS-in-JS</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment