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

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…

Contents