1
00:00:00,000 --> 00:00:03,000
So you learned how to work with NextJS

2
00:00:03,000 --> 00:00:05,000
or to be precise,

3
00:00:05,000 --> 00:00:10,000
you learned how to work with the NextJS App Router,

4
00:00:10,000 --> 00:00:13,000
which is the most modern and recommended way

5
00:00:13,000 --> 00:00:15,000
of working with NextJS.

6
00:00:15,000 --> 00:00:19,000
But if you take a look at the official documentation,

7
00:00:19,000 --> 00:00:21,000
you might notice that there also is

8
00:00:21,000 --> 00:00:24,000
this Pages Router being mentioned,

9
00:00:24,000 --> 00:00:25,000
and in the documentation,

10
00:00:25,000 --> 00:00:28,000
you can also switch between the App Router

11
00:00:28,000 --> 00:00:30,000
and the Pages Router.

12
00:00:30,000 --> 00:00:33,000
And I also did mention the Pages Router

13
00:00:33,000 --> 00:00:34,000
earlier in the course already.

14
00:00:34,000 --> 00:00:39,000
Because indeed, NextJS offers two different approaches

15
00:00:40,000 --> 00:00:43,000
of building NextJS applications.

16
00:00:43,000 --> 00:00:45,000
You can use the so-called Pages Router

17
00:00:45,000 --> 00:00:47,000
and the so-called App Router.

18
00:00:47,000 --> 00:00:50,000
And you did learn about the App Router in this course,

19
00:00:50,000 --> 00:00:53,000
but it's the Pages Router that has been around

20
00:00:53,000 --> 00:00:55,000
for a longer time period.

21
00:00:55,000 --> 00:00:59,000
It's the old way of building NextJS applications,

22
00:00:59,000 --> 00:01:00,000
you could say,

23
00:01:00,000 --> 00:01:02,000
though, that sounds as if

24
00:01:02,000 --> 00:01:05,000
it would be bad to use the Pages Router,

25
00:01:05,000 --> 00:01:08,000
and that's absolutely not the case.

26
00:01:08,000 --> 00:01:11,000
Instead, the Pages Router is very stable

27
00:01:11,000 --> 00:01:13,000
because it's been around for many years,

28
00:01:13,000 --> 00:01:18,000
and it's being used in many existing NextJS projects.

29
00:01:18,000 --> 00:01:21,000
It allows you to build feature-rich full-stack apps

30
00:01:21,000 --> 00:01:25,000
with React and NextJS just like the App Router,

31
00:01:25,000 --> 00:01:29,000
and therefore, learning about the Pages Router,

32
00:01:29,000 --> 00:01:33,000
even though it's not the recommended and most modern way

33
00:01:33,000 --> 00:01:36,000
of building NextJS applications,

34
00:01:36,000 --> 00:01:38,000
can still be a very good idea.

35
00:01:38,000 --> 00:01:40,000
And you might need it for the job

36
00:01:40,000 --> 00:01:42,000
you are going to work on in the future,

37
00:01:42,000 --> 00:01:46,000
if you are joining a team that's using the Pages Router,

38
00:01:46,000 --> 00:01:47,000
you need to know about it.

39
00:01:47,000 --> 00:01:49,000
Now, as I mentioned in this course,

40
00:01:49,000 --> 00:01:51,000
you'll learn about the App Router,

41
00:01:51,000 --> 00:01:54,000
which was introduced with NextJS 13,

42
00:01:54,000 --> 00:01:56,000
and which is marked as stable,

43
00:01:56,000 --> 00:01:58,000
but which in my experience,

44
00:01:58,000 --> 00:02:01,000
still has some problems here and there,

45
00:02:01,000 --> 00:02:03,000
maybe not in all apps you're using it,

46
00:02:03,000 --> 00:02:07,000
but it still can have some issues at least.

47
00:02:07,000 --> 00:02:09,000
But it does support, of course,

48
00:02:09,000 --> 00:02:11,000
modern NextJS and React features

49
00:02:11,000 --> 00:02:13,000
like React Server components,

50
00:02:13,000 --> 00:02:14,000
and you can, therefore,

51
00:02:14,000 --> 00:02:17,000
build modern full-stack React apps with it,

52
00:02:17,000 --> 00:02:19,000
and it is the future of NextJS,

53
00:02:19,000 --> 00:02:23,000
that is why I covered it right from the start in-depth

54
00:02:23,000 --> 00:02:24,000
in this course.

55
00:02:24,000 --> 00:02:28,000
But the lectures and sections after this lecture here,

56
00:02:28,000 --> 00:02:31,000
will now cover the Pages Router in-depth,

57
00:02:31,000 --> 00:02:36,000
because that was the original NextJS course I created,

58
00:02:36,000 --> 00:02:38,000
and I decided to keep it online

59
00:02:38,000 --> 00:02:41,000
because learning about the Pages Router

60
00:02:41,000 --> 00:02:45,000
and using the Pages Router is still a good idea,

61
00:02:45,000 --> 00:02:49,000
still something that makes sense for a lot of developers.

62
00:02:49,000 --> 00:02:50,000
Now, if you don't care,

63
00:02:50,000 --> 00:02:52,000
you can, of course, ignore those lectures,

64
00:02:52,000 --> 00:02:55,000
you don't have to go through them,

65
00:02:55,000 --> 00:02:58,000
you don't have to go through the following sections,

66
00:02:58,000 --> 00:03:01,000
but I do recommend it for most developers,

67
00:03:01,000 --> 00:03:04,000
and that's why those sections are still there,

68
00:03:04,000 --> 00:03:08,000
and why now you can learn about NextJS again,

69
00:03:08,000 --> 00:03:10,000
now with the Pages Router.

