We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6926ab7 commit ba2fbc2Copy full SHA for ba2fbc2
examples/with-styled-components/pages/_app.js
@@ -1,4 +1,3 @@
1
-import App from 'next/app'
2
import { ThemeProvider } from 'styled-components'
3
4
const theme = {
@@ -7,13 +6,10 @@ const theme = {
7
6
},
8
}
9
10
-export default class MyApp extends App {
11
- render() {
12
- const { Component, pageProps } = this.props
13
- return (
14
- <ThemeProvider theme={theme}>
15
- <Component {...pageProps} />
16
- </ThemeProvider>
17
- )
18
- }
+export default function App({ Component, pageProps }) {
+ return (
+ <ThemeProvider theme={theme}>
+ <Component {...pageProps} />
+ </ThemeProvider>
+ )
19
0 commit comments