Skip to content

Instantly share code, notes, and snippets.

@TylerLH
Last active December 11, 2022 18:14
Show Gist options
  • Save TylerLH/89357ebbada2b7e1d1a148453c1cc4cc to your computer and use it in GitHub Desktop.
Save TylerLH/89357ebbada2b7e1d1a148453c1cc4cc to your computer and use it in GitHub Desktop.
const styles = theme => ({
container: {},
input: {},
})
export default styles
import React from 'react'
import baseStyle from './baseStyle'
const styles = theme => ({
...baseStyle,
bar: {
width: theme.spacing.unit * 3
}
})
const ComponentA = ({ classes }) => <div className={classes.container}></div>
export default withStyles(styles)(ComponentA)
import React from 'react'
import baseStyle from './baseStyle'
const styles = theme => ({
...baseStyle,
foo: {
height: theme.spacing.unit * 6
}
})
const ComponentB = ({ classes }) => <div className={classes.container}></div>
export default withStyles(styles)(ComponentB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment