Created
April 17, 2017 14:23
-
-
Save lvarayut/2a06af2be5c2c50845271f2c4144b720 to your computer and use it in GitHub Desktop.
Step-4 Global style
This file contains hidden or 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { injectGlobal } from 'styled-components'; | |
import App from './App'; | |
ReactDOM.render( | |
<App />, | |
document.getElementById('root') | |
); | |
// Global style | |
// eslint-disable-next-line | |
injectGlobal` | |
body { | |
background-color: ghostwhite; | |
padding: 0; | |
margin: 0; | |
font-family: cursive; | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment