From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
What is pre-rendering in Next.js?
From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
What is pre-rendering in Next.js?
Okay, so let's talk about pre-rendering, and that has to do with SSR and SSG, so server-side rendering and static site generation. But let's make sure we define this correctly in the framework of Next.js. Commonly, when you talk about SSR and SSG, you're referring to them as pre-render techniques because they involve fetching data and converting React components into HTML content before delivering the final output to the client. So you're going to fetch that external data, convert the React components into HTML content. But what Next.js does is interesting. What it does, it takes a distinctive approach by inherently pre-rendering each page as part of its default behavior. So what that means is that the HTML content is generated beforehand on a server rather than solely relying on JavaScript execution on the device. The distinction is really important because it really can have a major impact for the user experience. Think about it. Think about an application, and here we can see by…
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
-
-
-
-
-
-
-
-
(Locked)
Development environment and build versus production build with Next.js8m 24s
-
(Locked)
Introduction to the Next.js compiler3m 8s
-
(Locked)
Demystifying what is meant by Next.js 'compiler'1m 19s
-
(Locked)
What is minification in Next.js?4m 44s
-
(Locked)
What is bundling in Next.js?3m 8s
-
(Locked)
What is code splitting in Next.js?3m 44s
-
(Locked)
Build-time versus run-time basics2m 44s
-
(Locked)
What is the client and what is the server in web applications? The basics5m 46s
-
(Locked)
What is rendering in Next.js?4m 5s
-
(Locked)
What is pre-rendering in Next.js?2m 37s
-
(Locked)
What is CSR, client-side rendering with Next.js?3m 29s
-
(Locked)
How server-side rendering works as a deeper dive7m 3s
-
(Locked)
What is SSG in Next.js?2m 48s
-
(Locked)
What are CDNs and the edge in Next.js and Vercel?9m 58s
-
(Locked)
-
-
-
-
-