So you learned how to work with NextJS
or to be precise,
you learned how to work with the NextJS App Router,
which is the most modern and recommended way
of working with NextJS.
But if you take a look at the official documentation,
you might notice that there also is
this Pages Router being mentioned,
and in the documentation,
you can also switch between the App Router
and the Pages Router.
And I also did mention the Pages Router
earlier in the course already.
Because indeed, NextJS offers two different approaches
of building NextJS applications.
You can use the so-called Pages Router
and the so-called App Router.
And you did learn about the App Router in this course,
but it's the Pages Router that has been around
for a longer time period.
It's the old way of building NextJS applications,
you could say,
though, that sounds as if
it would be bad to use the Pages Router,
and that's absolutely not the case.
Instead, the Pages Router is very stable
because it's been around for many years,
and it's being used in many existing NextJS projects.
It allows you to build feature-rich full-stack apps
with React and NextJS just like the App Router,
and therefore, learning about the Pages Router,
even though it's not the recommended and most modern way
of building NextJS applications,
can still be a very good idea.
And you might need it for the job
you are going to work on in the future,
if you are joining a team that's using the Pages Router,
you need to know about it.
Now, as I mentioned in this course,
you'll learn about the App Router,
which was introduced with NextJS 13,
and which is marked as stable,
but which in my experience,
still has some problems here and there,
maybe not in all apps you're using it,
but it still can have some issues at least.
But it does support, of course,
modern NextJS and React features
like React Server components,
and you can, therefore,
build modern full-stack React apps with it,
and it is the future of NextJS,
that is why I covered it right from the start in-depth
in this course.
But the lectures and sections after this lecture here,
will now cover the Pages Router in-depth,
because that was the original NextJS course I created,
and I decided to keep it online
because learning about the Pages Router
and using the Pages Router is still a good idea,
still something that makes sense for a lot of developers.
Now, if you don't care,
you can, of course, ignore those lectures,
you don't have to go through them,
you don't have to go through the following sections,
but I do recommend it for most developers,
and that's why those sections are still there,
and why now you can learn about NextJS again,
now with the Pages Router.