Skip to content

Instantly share code, notes, and snippets.

@simenbrekken
Created August 5, 2016 12:28
Show Gist options
  • Save simenbrekken/8e72455be37fd3ca2e23de33ba3daf29 to your computer and use it in GitHub Desktop.
Save simenbrekken/8e72455be37fd3ca2e23de33ba3daf29 to your computer and use it in GitHub Desktop.
Frontpage.js
import React, { Component, PropTypes } from 'react'
import useSheet from 'react-jss'
class Frontpage extends Component {
static propTypes = {
sheet: PropTypes.object.isRequired,
}
render() {
const { classes } = this.props.sheet
return (
<div className={classes.greeting}>Hello world!</div>
)
}
}
const styles = {
greeting: {
color: 'pink',
},
}
export default useSheet(styles)(Frontpage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment