mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
22 lines
433 B
JavaScript
22 lines
433 B
JavaScript
import React from 'react'
|
|
import App from 'next/app'
|
|
|
|
class MyApp extends App {
|
|
static async getInitialProps({ Component, ctx }) {
|
|
let pageProps = {}
|
|
|
|
if (Component.getInitialProps) {
|
|
pageProps = await Component.getInitialProps(ctx)
|
|
}
|
|
|
|
return { pageProps, router: () => {} }
|
|
}
|
|
|
|
render() {
|
|
const { Component, pageProps } = this.props
|
|
return <Component {...pageProps} />
|
|
}
|
|
}
|
|
|
|
export default MyApp
|