Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created November 9, 2017 22:02
Show Gist options
  • Save indreklasn/f7d862549b680f766e68751e0f3f77d1 to your computer and use it in GitHub Desktop.
Save indreklasn/f7d862549b680f766e68751e0f3f77d1 to your computer and use it in GitHub Desktop.
aphrodite
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