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 CSR, client-side rendering with Next.js?
From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
What is CSR, client-side rendering with Next.js?
OK, so to contrast pre-rendering to client-side rendering, or what we call CSR. So in a standard React application, what happens is that the browser just receives an empty HTML shell from the server, along with the JavaScript instructions to construct the UI. And that's called client-side rendering, because that initial rendering work happens on the user's device. So all the rendering is going to happen, and you've got to wait for the rendering to be finished before you're going to see the final result. So that's client-side rendering. Now, again, intuitively you might think, well, doesn't that mean server-side rendering should just be better? Many cases, yes. But suppose you're building a social media app where users receive real-time notifications, like you have messages, comments, and likes. You want to display a notification count in the nav bar, and it needs to update in real-time without requiring a full page refresh. That's a drawback with server-side rendering. With…
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)
-
-
-
-
-