File-Based Routing in the App Router
Under app/, each folder is a URL segment and special files define behavior: page.tsx makes a segment publicly routable, layout.tsx wraps it, and dynamic segments use [param] folders whose values arrive as the params prop. Only the contents of special files are routed; colocated files are private by default.
This Concept is waiting for its first lesson!
Under app/, each folder is a URL segment and special files define behavior: page.tsx makes a segment publicly routable, layout.tsx wraps it, and dynamic segments use [param] folders whose values arrive as the params prop. Only the contents of special files are routed; colocated files are private by default.
Are you a teacher? Sign in to start contributing.
Sign In