And here, I now got
a little exercise for you, because we did already learn
how we can generally set up routes in NextJS applications.
We learned that over the last couple of lectures,
and therefore, my exercise for you
is to create three new routes in this new project
that I shared with you.
To be precise, I want you to create a meals route,
a /meals/share route,
so a nested route in the meals route with an extra path
of share, and a community route.
And for this exercise,
it's then enough if every route renders
a super simple React component
that maybe just outputs some title,
so the page content
of all these routes is not important right now.
We'll work on that to gather over the next lectures,
but you should set up those routes, and if you feel like it,
you also can add some links to some of these pages,
so that users can navigate between those routes.
But that's not all.
I then also want you to create an extra fourth route,
which also leads to /meals/something,
but now that something part should be dynamic,
so that in the end later,
we'll have /meals/meals/share,
which will be the page that allows us
to share meals with the community,
and /meals/, and then some dynamic segment,
some dynamic slug that will identify a specific meal,
and that will later allow us to view the details
of a selected meal.
That's my exercise for you.
Create those routes, add some links,
but don't worry about styling or the page content.
In the next lecture, we're going
to set up those routes together,
and thereafter, we're going to fill them with some life.