Nested Routes in NextJS
Let's say we have a certain URL,
consisting of several segments,
for example, like this: /user/show/name.
To create a file that will be displayed at this URL, we will need to create several nested folders. In our case, like this:
- /app//user//show//name/
Let's create the corresponding file:
app/user/show/name/page.jsxexport default function Name() {
return <p>
user
</p>;
}
Задание 1
Create a file that displays a page at
the following URL: /catg/prod/name.