NextJS 12.1 SSR & SSG: Everything you need to know

  Рет қаралды 98,745

Jack Herrington

Jack Herrington

Күн бұрын

Server Side Rendering, Static Site Generation, and Client Side Rendering are all supported with NextJS 12.1. Let's go through all the different modes and explore the new revalidation features in 12 and 12.1.
Code: github.com/jherr/nextjs-pokem...
Deployable data set: github.com/jherr/pokemon
Mountain Duck: mountainduck.io/
👉 I'm a host on the React Round-Up podcast: devchat.tv/podcasts/react-rou...
👉 Don't forget to subscribe to this channel for more updates: bit.ly/2E7drfJ
👉 Discord server signup: / discord
👉 VS Code theme and font? Night Wolf [black] and Operator Mono
👉 Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF
0:00 Introduction
1:00 App Walkthrough
2:00 App Setup
2:52 Client-Side Rendering
9:44 Client-Side Rendering Explained
11:16 Client-Side Rendering Usecases
11:39 Deployment
12:49 Server-Side Rendering
17:21 Server-Side Rendering Usecases
17:41 Static-Site Generation
21:18 Deploying Static Sites
22:25 Revalidation
25:58 Forced Revalidation
30:03 Static-Site Generation Usecases
30:56 Outroduction
#nextjs

Пікірлер: 261
@dgcp354
@dgcp354 2 жыл бұрын
Your thumbnail it's the american war poster, hilarious
@mattgic42
@mattgic42 2 жыл бұрын
I just wanted to take the time to show appreciation and say thank you for everything you do for us with your videos, sharing your knowledge and helping people like me to grow in the process. You're greatly appreciated.
@pim8268
@pim8268 Жыл бұрын
Wow, the quality of this channel is just wonderful. The timing of the explanations seams flawless to me too, not too fast, not too slow, just right. Thank you, Jack, for sharing your knowledge like this!
@demiann4160
@demiann4160 2 жыл бұрын
Started following you since your tRPC video. Like your style that explains so much in only a couple of minutes. Might be worth mentioning that the first revalidation technique (time-based) shown here is what next.js calls ISR, Incremental Static Regeneration. Congrats on all your amazing content!
@Delba
@Delba 2 жыл бұрын
Awesome video Jack! I like how you built on and explained each method 🤩
@netharian_
@netharian_ 2 жыл бұрын
Jack, you’re my favorite instructor right now. Every single video is very interesting and so well explained. Also, you bring examples with pokemon, which makes it even better hahaha.
@Bliqu1
@Bliqu1 Жыл бұрын
Thank you very much for the straightforward and clear explanations. You've fitted in 30 minutes everything that's really needed. Wish you and your channel all the best!
@mithatercan
@mithatercan 2 жыл бұрын
I had been struggling to understand the differences between these 3 terms then I came across your channel and this video. I just want to appreciate you. Thanks a lot for this awesome explanation, everything is super clean now. ✌🙏
@kevinzunigacuellar
@kevinzunigacuellar 2 жыл бұрын
amazing video Jack, literally summarized data fetching in 30 minutes
@theepan27
@theepan27 Жыл бұрын
This is a must watch video for anyone to understand about CSR, SSR and SSG's. No lags and very crisp with a nice and easy example. You have got a happy subscriber
@mohamedsafwat6696
@mohamedsafwat6696 Жыл бұрын
I've been struggling with this for a few days and I can confidently say this is the best explanation of all time, thank you man
@kentay4460
@kentay4460 2 жыл бұрын
Just started to work on SEO migrating my React App to a Next App, that's the best explanation I've seen through my researches as I started from zero on SSG and SSR. Thanks a lot !
@jonathanvandenberg3571
@jonathanvandenberg3571 2 жыл бұрын
That room-flip-transition at the end was freaking mucho mega awesome!
@vladandreit
@vladandreit 2 жыл бұрын
You could create videos 3 hours long and i would watch every second. I was waiting for a good video explanation for SSG on demand. Now i have good understanding for all methods. Thank you! Keep up the good work.
@jwickerszh
@jwickerszh 2 жыл бұрын
Small clarification at the end: You do need to "run a server" when using revalidation (aka ISR) as this does SSR (and you obviously have a server API route to call for forced revalidation). However it is still very cool as the SSG content is still there if the server or DB crashed. Could have spent a few minutes on mixing the methods, eg: * in SSG what happens if you added a new pokemon id, would the route do SSR on the first hit. * on the list page you could use SSG for a limited list of pokemons like the first 20 instead of generating it for the whole 800+, then use CSR to fetch on scroll for example
@aqua123670
@aqua123670 2 жыл бұрын
ok Mr. Expert then please make the video
@centereddev
@centereddev 2 жыл бұрын
Not sure why you got that rude response, these are good points.
@alexr3d
@alexr3d 2 жыл бұрын
I was trying to do this a few hours before you published. Best explanation on KZbin. Congrats.
@zombiefacesupreme
@zombiefacesupreme Жыл бұрын
WOW!! What a great video! I'm just learning, and I knew every term, but this hammered in the concepts so well. I'm really glad I subscribed to you and decided to check out some older videos!
@mcylinder
@mcylinder 2 жыл бұрын
This was mucho crazy awesome! Clear, concise, pertinent. Best I've seen. Glad to subscribe.
@t0mmx
@t0mmx 2 жыл бұрын
Mucho awesome explanation! I already knew most of it from before, but it was a great recap with a sprinkle of new info such as revalidate!
@SpaghettiRealm
@SpaghettiRealm Жыл бұрын
I'm senior web developer but new to NextJS, and this video explains those concepts in the best way I can find. Also, all your content is just on the point! Thank you Jack 💙
@dariuspranskus
@dariuspranskus Жыл бұрын
Thank you for the great demonstration of Client, SSR and SSG features. I also liked the terminal prompt customisation.
@universecode1101
@universecode1101 2 жыл бұрын
This is huge Jack 🤯Thanks for the explanations, as always amazing
@clausstilborg8330
@clausstilborg8330 2 жыл бұрын
I absolutely love you content Mr Herrington
@axe-z8316
@axe-z8316 2 жыл бұрын
geeeezus was just looking at that ! great content man, keep it up with the extended jsx world.
@duketip2010
@duketip2010 2 жыл бұрын
How are you only at 61k subs? Your videos are fantastic and you explain things perfectly!
@DavidCCR
@DavidCCR 2 жыл бұрын
Jack every video is getting better. Love it! "CLEAN ARCHITECTURE" is a nice and interesting topic for sure those days. I would like to see some videos about it. Thank you so much!
@davidkezi6086
@davidkezi6086 2 жыл бұрын
Thanks again Jack, absolutely love this video. This has to be the best explanation and comparison i have seen of SSR and SSG.
@seymurmammadov3868
@seymurmammadov3868 2 жыл бұрын
you’re an amazing teacher so happy I stumbled on your channel
@BetulKaplan
@BetulKaplan Жыл бұрын
This was the neatest explanation I have had for SSR - CSR. Thanks a lot!
@jonatanmark7557
@jonatanmark7557 2 жыл бұрын
Really cool next.js tutorial.... 👍👍👍After watching this video, I could understand easily about the CSR, SSR and SSG. Thanks Jack!
@SunilSkanda
@SunilSkanda Жыл бұрын
Fantastic explanation of all the different rendering methods available in Next.js. 🔥
@TheOlian04
@TheOlian04 2 жыл бұрын
Ohh.. The production quality has really gone up recently! Well done!
@usmanmughal5916
@usmanmughal5916 2 жыл бұрын
I already knew the rendering method but, after watching this I wished it was there before. Video was refreshing and it is the best short introduction with perfect example.
@vasiovasio
@vasiovasio 2 жыл бұрын
It's a real showcase of how flexible is Next.js! Really useful video! Thank you, Jack!
@lucaszanek6204
@lucaszanek6204 Жыл бұрын
Awesome!!! Finally i really understood the core differences and where use one of each, thanks for this video!
@simonedwards7101
@simonedwards7101 2 жыл бұрын
I love it when it goes wrong! As i'm learning I like to take the content I watch and apply it to something I'm working on (I'm not a web dev by trade). What was wrong: One of the entries in my json had an incorrectly ordered key/value pair! This caused some lovely misleading errors that took me a while to pin down. Funny thing is on the surface it looked like it was running in dev but come build time it would error out. Turns out in dev it was only partially working with the second part of the list having slugs and posts that didn't match. Basically everything after the "typo" was broken but only in as much as the slug and post didn't match! Actually, it was a random console.log that caught my eye in as much as it had an empty array at the end of the returned json response. So again, everything looked ok until the last entry in the return. All good fun. Thanks Jack, content like this keeps me inspired and motivated to push through the issues I experience as a learner.
@pratikbankar4757
@pratikbankar4757 2 жыл бұрын
You are awesome Jack. Thank you for keeping up with such a wonderful content always.
@ayush612
@ayush612 2 жыл бұрын
PROS: Course Quality Brilliant Explanation Beautiful Animations CONS:
@SuperPompey77
@SuperPompey77 Жыл бұрын
Very good explanation on the different methods of rendering pages.
@subhadeepchowdhury5244
@subhadeepchowdhury5244 5 ай бұрын
Tomorrow, I have an interview for Next .js developer position. This video is really helpful to understand the core concepts of Next 12.
@raqibnur
@raqibnur Жыл бұрын
This was the easier explanation I have seen ever. now SSR and SSG are fully clear to me. special thanks for force revalidating
@vincentsolon3216
@vincentsolon3216 Жыл бұрын
Wow thank you so much! I have a task to build an ecommerce site and your tutorial help me a lot to understand
@dantownsend0
@dantownsend0 2 жыл бұрын
Amazing video - one of the best programming tutorials I've seen.
@maysamtayyeb4552
@maysamtayyeb4552 Жыл бұрын
Jack, I never regret watching your rich content. You explain it the way I need to learn stuff. Thank you so much
@krishgarg2806
@krishgarg2806 2 жыл бұрын
Great! By the way, you can use the "Rest Client" extension so you don't have to write raw curl requests but also keeping it minimal by design.
@venicebeachsurfer
@venicebeachsurfer 2 жыл бұрын
You mean something like postman or insomnia?
@codernerd7076
@codernerd7076 2 жыл бұрын
Next.js, gotta server render 'em all, it's you and me I know it's our destiny Next.js, oh, you're my best friend In a React.js world we must defend!
@TheLastNinja
@TheLastNinja 2 жыл бұрын
A great way to demonstrate the server side rendered step is the preview of the first request in the network tab (change filter to all)
@Billy_98
@Billy_98 2 жыл бұрын
Thank you so you much, Jack! Greetings from Romania!
@MrBox4soumendu
@MrBox4soumendu 2 жыл бұрын
Thank you very much. This is the best one to understand the use cases. Thanks a lot!!!
@atosupriyanto6990
@atosupriyanto6990 Жыл бұрын
My understanding is clear when landed to this video, thanks!
@bythealphabet
@bythealphabet 2 жыл бұрын
😂, Jack when you said "that to changed the code for SSG was going to take a lot of work, I paused the video and went to do some arrents. You got me😅 so funny!
@shubhamlatiyan7972
@shubhamlatiyan7972 2 жыл бұрын
Very detailed and awesome video, thank you Jack
@MrKeliv
@MrKeliv 2 жыл бұрын
Awesome tutorial and explanation about SSR and SSG. Thanks
@sean_dev
@sean_dev 2 жыл бұрын
Awesome explanation and showcase, thank you!
@shesharaopuli8887
@shesharaopuli8887 Жыл бұрын
Simply the best video of Next.Js rendering methods 💕
@al-doori2392
@al-doori2392 Жыл бұрын
Just waw, thank you so much, may god bless you and your family, you really reminding me of my dad. Appreciate everything you post.
@sergnio
@sergnio 2 жыл бұрын
What!!! Wow what a fantastic overview and especially demonstration of NextJS. Easy subscribe for me!! Couple questions: 1. What do you mean by "I would use SSR for search if things are dynamic", woudln't you use CSR (client side rendering) for this since there are many unknowns? 2. If you have an app that's mostly static with videos / audio, with a few dynamic elements like user accounts, user preferences, etc. this feels like a strong case for SSG, but I would love to hear your perspective. Something like a personal website that has tutorials of some sort where you upload videos / courses maybe once a month (I honestly don't have one, but it's a simple example)
@edouardsouan6330
@edouardsouan6330 2 жыл бұрын
Your video is mucho crazy awesome ! Watching your video is a real pleasure. Thank you.
@ryanle4059
@ryanle4059 2 жыл бұрын
Thank you Jack for your awesome explanation.
@hamzahmd_
@hamzahmd_ Жыл бұрын
Thanks, Jack for this amazing content. Easy Explanation.
@sasonbraha4599
@sasonbraha4599 2 жыл бұрын
Really great explanation! Thank you.
@sanjitselvan5348
@sanjitselvan5348 Жыл бұрын
Very well explained. Thanks!
@mahdizohrevand9294
@mahdizohrevand9294 Жыл бұрын
Awesome video, well examples and descriptions
@rajankonar90
@rajankonar90 2 жыл бұрын
Thanks a lot for the detail explanation.
@wandersonsousa1891
@wandersonsousa1891 2 жыл бұрын
Great content, as expected from your channel, thank you.
@halyapin
@halyapin 2 жыл бұрын
Thanks! Really good explanation
@TheHoinoel
@TheHoinoel 2 жыл бұрын
This is a terrific explanation, thank you :)
@froggerabc
@froggerabc Жыл бұрын
Brilliant course. Thanks very much
@bythealphabet
@bythealphabet 2 жыл бұрын
Great video Jack, Thank you.
@Boy_genivs
@Boy_genivs 2 жыл бұрын
always here to know whats new and always getting better....thank ypu jack
@toiageddes1710
@toiageddes1710 Жыл бұрын
This content was SO helpfull thank you so much!!! :)
@SocksWithSandals
@SocksWithSandals 2 жыл бұрын
Very useful. Thank you.
@johnpatrickmadrigal477
@johnpatrickmadrigal477 2 жыл бұрын
This is a great explanation Jack
@wendanny6732
@wendanny6732 Жыл бұрын
Really awesome explanation!
@anuj7286
@anuj7286 Жыл бұрын
Finally i understand the concept. Thankyou
@amershboul9107
@amershboul9107 2 жыл бұрын
Amaaaazing explanation! Thanks a lot 💯🔥
@zeeshan4341
@zeeshan4341 2 жыл бұрын
Amazing 🤩 just loves ur content and way of teaching 😉
@kcapt96
@kcapt96 Жыл бұрын
This was the best video about NextJs. Perfect!
@farzadmf
@farzadmf 2 жыл бұрын
NextJS is sooo cool!, and thank you for another great video 🚀
@oosswwaalldd
@oosswwaalldd 2 жыл бұрын
Amazing video! Thanks!
@liffidmonky1216
@liffidmonky1216 Жыл бұрын
Incredible video, finally, explained amazing made my day. :D
@tomascarignano5002
@tomascarignano5002 2 жыл бұрын
I love how you explain!
@valentoMundrov
@valentoMundrov Жыл бұрын
I must repeat it: best introduction to Next-SS... for devs, (I still watch it sometimes even knowing every word of it 🙂)
@jose6183
@jose6183 2 жыл бұрын
Thanks Jack! Great content!
@lironavineri
@lironavineri Жыл бұрын
Great stuff! thank you!
@kamichikora6035
@kamichikora6035 Жыл бұрын
Great stuff as always
@sulaimandev
@sulaimandev Жыл бұрын
Thank you so much ❤
@hui2414
@hui2414 Жыл бұрын
nice video! thanks for sharing!
@adityanuar
@adityanuar 2 жыл бұрын
pretty cool explanation, i'm auto subscribing
@ankiy
@ankiy Жыл бұрын
So easily explained thanks ❤️btw which theme u are using for vs code terminal ?
@jherr
@jherr Жыл бұрын
It’s changed a lot. It’s usually listed in the description. 😀
@abhisheksharma9796
@abhisheksharma9796 2 жыл бұрын
Nice Video Animations. What do you use to create these awesome videos?
@yashiel
@yashiel Жыл бұрын
One of the best explanation.
@opm95
@opm95 Жыл бұрын
Insane video, thank you
@mahdiaghaei8154
@mahdiaghaei8154 2 жыл бұрын
Just what I needed, Thanks
@AshishKumar-ft6wv
@AshishKumar-ft6wv 4 ай бұрын
This is just awesome. Thanks
@antonsvyatchenko8876
@antonsvyatchenko8876 Жыл бұрын
Mucho crazy awesome video, thx 😊
@MrEasyFlying
@MrEasyFlying 2 жыл бұрын
awsome explaination. thanks a lot.
@andrejsaule7428
@andrejsaule7428 Жыл бұрын
Great video and explanation, I was wondering how you got the intellisense autocomplete in your terminal as seen at @2:00 of this video.
@jherr
@jherr Жыл бұрын
That's Fig.
@mohamedalaa6199
@mohamedalaa6199 Жыл бұрын
Awesome! And the server mentioned is the web server, it's where the code is compiled right? In that case, my pc?
@marco_r80
@marco_r80 Жыл бұрын
Thank you, really good guide
CSR, SSR, and SSG on NextJS
25:13
Jack Herrington
Рет қаралды 49 М.
No const! How NOT To Give A JavaScript Talk
10:28
Jack Herrington
Рет қаралды 59 М.
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 104 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 25 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 22 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 9 МЛН
Beware of "auto" Mode in the NextJS App Router
12:27
Jack Herrington
Рет қаралды 14 М.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 81 М.
Client-Side VS Server-Side Rendering - Data Fetching with Next.js
13:20
freeCodeCamp Talks
Рет қаралды 180 М.
NADIE LO SABE y es el mejor móvil de 2024!!!
17:01
Testa Do
Рет қаралды 29 М.
Mastering React's useEffect
25:20
Jack Herrington
Рет қаралды 171 М.
Are Your React Components Too BIG?
12:20
Jack Herrington
Рет қаралды 22 М.
How Object detection works? | Part 1 | YOLO
3:00
AGI Lambda
Рет қаралды 261
Is Tanstack Router Better Than React-Router?
18:00
Jack Herrington
Рет қаралды 32 М.
What is CSR SSR SSG and ISR
16:57
Hitesh Choudhary
Рет қаралды 45 М.
Javascript Array and Object Cloning: Shallow or Deep?
8:39
Jack Herrington
Рет қаралды 10 М.
Main filter..
0:15
CikoYt
Рет қаралды 9 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,4 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,8 МЛН