Skip to content

Instantly share code, notes, and snippets.

@jacobsmith
Created March 9, 2018 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobsmith/e86483998cdf46159bd03afa2feddf6d to your computer and use it in GitHub Desktop.
Save jacobsmith/e86483998cdf46159bd03afa2feddf6d to your computer and use it in GitHub Desktop.
// styles.js
const styles = {
container: {
width: '100%'
},
header: {
fontSize: '3em',
textAlign: 'left'
},
body: {
display: 'flex',
},
quote: {
border: '1px solid black'
}
};
export default styles
// Component
import styles from './styles'
class WebPage extends Component {
render() {
return (
<div style={styles.container}>
<div style={styles.header}>This is a header</div>
<div style={styles.body}>
This is the body
<div style={styles.quote}>
This is an offset quote
</div>
</div>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment