Created
November 9, 2017 22:02
-
-
Save indreklasn/f7d862549b680f766e68751e0f3f77d1 to your computer and use it in GitHub Desktop.
aphrodite
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
import React, { Component } from 'react'; | |
import { StyleSheet, css } from 'aphrodite'; | |
const styles = StyleSheet.create({ | |
wrapper: { | |
backgroundColor: 'red' | |
}, | |
title: { | |
backgroundColor: 'blue' | |
} | |
}); | |
class App extends Component { | |
render() { | |
return ( | |
<div className={css(styles.wrapper)}> | |
<h1 className={css(styles.title)}>Hello Aphrodite!<h1> | |
</div>; | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment