/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/basic/styled-components-disabled/pages/_app.js
26 строк
450 B
Tim Neutkens
Add test for styled-components SWC transform disabled (#31214)
09 ноя 2021, 19:18
Не верифицирован
09 ноя 2021, 19:18
b5b315a
Код
Авторство
О чём код?
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> </> ) }