Created
March 9, 2018 22:50
-
-
Save jacobsmith/e86483998cdf46159bd03afa2feddf6d to your computer and use it in GitHub Desktop.
This file contains 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
// 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