📜  样式化组件重置 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.004000             🧑  作者: Mango

代码示例1
import { createGlobalStyle } from 'styled-components'

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

// in your app root

  
   {/* example of other top-level stuff */}