Answers for "styled components reset"

1

styled components reset

import { createGlobalStyle } from 'styled-components'

const GlobalStyle = createGlobalStyle`
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
`

// in your app root
<React.Fragment>
  <GlobalStyle />
  <Navigation /> {/* example of other top-level stuff */}
</React.Fragment>
Posted by: Guest on November-18-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language