Skip to content

Instantly share code, notes, and snippets.

@donghoon-song
Created May 21, 2019 15:17
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 donghoon-song/aa2cc36680e143499af5b0782a28ab68 to your computer and use it in GitHub Desktop.
Save donghoon-song/aa2cc36680e143499af5b0782a28ab68 to your computer and use it in GitHub Desktop.
Styled Components v4 : injectGlobal -> createGlobalStyle example
import { createGlobalStyle } from "styled-components"
const GlobalStyle = createGlobalStyle`
body {
padding: 0;
margin: 0;
}
`;
class App extends Component {
render() {
return (
<Container>
<GlobalStyle/>
</Container>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment