What is the alternative to pages/_app.js in Application Router in NextJS?
P粉277824378
P粉277824378 2023-11-11 09:38:14
0
1
795

I just started using NextJS and there is a new router calledApplication Router. Now I have some tutorials usingpages/_app.jsfrom NextJSPage Router. So, what is the corresponding file inApplication Router?

P粉277824378
P粉277824378

reply all (1)
P粉242741921

Withinapp, each folder represents a route segment. The first folder, the application itself, represents the root routing segment.

app/layout.jswill now be equivalent to_app.jsin the new Next 13 app directory. Because, it is the one that wraps all the routes and sub-routes of the entire application.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!