Download next.js/test/development/basic/styled-components/pages/_app.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/styled-components/pages/_app.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/basic/styled-components/pages/_app.js
-
curl -L -o _app.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/styled-components/pages/_app.js
450 Bytes
| 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> | |
| </> | |
| ) | |
| } | |