/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/basic/styled-components/pages/_app.js
26 строк
450 B
Donny/강동윤
next-swc: Add `displayNameAndId` of `styled-components` (#31189)
09 ноя 2021, 13:05
Не верифицирован
09 ноя 2021, 13:05
54ca8f4
Код
Авторство
О чём код?
import { createGlobalStyle, ThemeProvider } from 'styled-components' const GlobalStyle = createGlobalStyle` body { margin: 0; padding: 0; box-sizing: border-box; } ` const theme = { colors: { primary: '#0070f3', }, } export default function App({ Component, pageProps }) { return ( <> <GlobalStyle /> <ThemeProvider theme={theme}> <Component {...pageProps} /> </ThemeProvider> </> ) }