📜  下一个 js 预渲染错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:16.934000             🧑  作者: Mango

代码示例1
import App from 'next/app'

class NextApp extends App {
    static async getInitialProps(appContext) {
        const { Component, ctx } = appContext

        let pageProps = {}
        if (Component.getInitialProps) {
            pageProps = await Component.getInitialProps(ctx)
        }
        return { pageProps }
    }

    render() {
        const { Component, pageProps } = this.props

        return 
    }
}

export default NextApp