2019-08-11 22:02:33 +02:00
|
|
|
import App from 'next/app'
|
2019-10-18 08:00:23 +02:00
|
|
|
import { CounterProvider } from '../components/Counter'
|
2018-09-14 12:04:29 +02:00
|
|
|
|
|
|
|
class MyApp extends App {
|
2019-11-11 04:24:53 +01:00
|
|
|
render() {
|
2018-09-14 12:04:29 +02:00
|
|
|
const { Component, pageProps } = this.props
|
|
|
|
return (
|
2019-08-11 22:02:33 +02:00
|
|
|
<CounterProvider>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</CounterProvider>
|
2018-09-14 12:04:29 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|