设置
样式化的组件
VS扩展
vscode样式的组件
常规设置
import styled from 'styled-components'
const NameOfElement = styled . htmlElement `
your
styles
go
here
`
整体风格
import { createGlobalStyle } from "styled-components"
const GlobalStyle = createGlobalStyle `
your
global
styles
go here
`
// wrap root element
export const wrapRootElement = ( { element } ) => {
return (
< >
< GlobalStyle>
{ element }