mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
15 lines
292 B
JavaScript
15 lines
292 B
JavaScript
const App = ({ Component, pageProps }) => <Component {...pageProps} />
|
|
|
|
App.getInitialProps = async ({ Component, ctx }) => {
|
|
let pageProps = {}
|
|
|
|
if (Component.getInitialProps) {
|
|
pageProps = await Component.getInitialProps(ctx)
|
|
}
|
|
return {
|
|
pageProps,
|
|
}
|
|
}
|
|
|
|
export default App
|