From the course: The Freelance Stack: Real Project with Next.js and Strapi
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Linking from page to page - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Linking from page to page
Okay, so we built different routes already, right? We have the blog page, we have the main page, and now we want to be able to link from one to another. Now, there's actually not much to it, but in terms of code, there's not a lot to it, but there's still something that you should conceptually understand when you're linking in Next.js, right? Because we're saying here we want to have the ability to make it as a single page application. We want to have this certain flow where if you click on something, there's no load time at all because everything has been already pre-rendered. Now in order to show you what I mean I'm just going to show you the launched website and you see that here this is already hosted. I'm on the blog page and if I click on read more you're going to see there's absolutely no load time right it immediately jumps to the next page because we're not going to make a new request we're actually just going to we already have everything pre-loaded we need and that's why…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Why are we using Next.js?6m 11s
-
Setting up a Next.js project3m 52s
-
(Locked)
Simple routing in Next.js4m 11s
-
(Locked)
Layouting in Next.js5m 25s
-
(Locked)
Linking from page to page2m 56s
-
(Locked)
Server and client components overview7m 56s
-
(Locked)
Data fetching6m 7s
-
(Locked)
Dynamic routing12m 59s
-
(Locked)
Not found pages4m 55s
-
-
-
-
-
-
-
-
-
-