RealTong / learn-nextjs-14

https://learn-nextjs-14-rho.vercel.app
0 stars 0 forks source link

Query #1

Closed damianlluch closed 6 months ago

damianlluch commented 6 months ago

Do you have any idea how to create an _app.tsx file in NextJS14 ? I haven't found a document and I need to define a provider for web3-react.js ?

Thanks

RealTong commented 6 months ago

In NextJS 14, both App route and page route are supported, and the entry files are page.tsx and _app.tsx respectively.

If you use the App route, then the new page.tsx and layout.tsx in the app folder are equivalent to _app.tsx.

If you are using the Page route, then it is the same as in NextJS 13.