Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Global styling using injectGlobal from styled-components
/* src/index.js */
.
.
.
/* line 10 - 32 */
injectGlobal`
* {
border: none;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
width: 100%;
}
a,
a:hover,
a:active,
a:visited {
text-decoration: none;
color: inherit;
}
`;
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.