Routing
In this page we will learn how to create routes for our pages.
Next.js 13's App Router provides new file conventions for quickly creating pages, shared layouts, and templates. This tutorial will walk you through the process of incorporating these unique files into your Next.js application.
A route's UI is represented by a page. Pages can be defined by exporting a component from a page.js file. To make a route publicly accessible, use nested folders to specify it and a page.js file to make it public.
Add a page.js file to the app directory to start your first page:
Defining Module routes
app/account/dashboard/page.js
// `app/account/dashboard/page.js` is the UI for the `/account/dashboard` URL
default function Page() {
return Hello, dashboard Page!
}
How To Remove Any page?
To remove a page from Multikart, just delete the page.js file from your app directory. This action will delete the page from your application.