Previously in NextJS, there was a file called pages/_app.js
that had the following default content:
https://i.sstatic.net/nAvJf.png
In this React component, we had a key called pageProps
. However, when I upgraded to NextJS v13, I couldn't locate it.
My question is, where can I find the pageProps
in NextJS v13? Which file contains it?
Another related question is that in older versions of NextJS, we could use something like
<p.Component {...p.pageProps} />
in the pages/app.js
file. This allowed us to pass pageProps using a tag.
But in the latest version, you can only use
{p.children}
, which means passing props is not possible. I tried using <p.children />
, but it didn't work.