From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Server vs. client components and router hooks - Next.js Tutorial
From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
Server vs. client components and router hooks
All right, guys. So I want to do a couple of things in this video. So one is to show you the difference between server components and client components and when to use which. And then I also want to show you some of the hooks that we get from the Next.js navigation or from the Next router. So we can do things like redirect from our functions. We can get the ID from the URL. We can get query params, things that you're going to do throughout this project. All right, so the stuff we're going to do right now isn't going to stay. It's just to kind of teach you some of the features. But we will be using it later on. Now, one thing I want to show you before that is if you're getting weird warnings and errors in your console, it's most likely from a browser extension. So I had a couple, actually. One from ColorZilla. I had one from LastPass. Grammarly is also a culprit with this. But if I enable ColorZilla and I reload, I get this extra attributes from server warning. So if you're seeing…
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)
New project and folder structure6m 13s
-
(Locked)
Layout, homepage, and metadata10m 47s
-
(Locked)
File-based routing7m 16s
-
(Locked)
Server vs. client components and router hooks9m 44s
-
(Locked)
Start on the navbar10m 3s
-
(Locked)
Navbar links, drop-downs, and React icons12m 28s
-
(Locked)
Active links and conditional rendering11m 48s
-
(Locked)
Homepage components15m 45s
-
(Locked)
Properties page7m 26s
-
(Locked)
Property card dynamic data14m 41s
-
(Locked)
Home property listings7m 42s
-
(Locked)
Custom not found and loading pages5m 58s
-
(Locked)
-
-
-
-
-
-
-
-