Client-Side VS Server-Side Rendering - Data Fetching with Next.js

  Рет қаралды 180,859

freeCodeCamp Talks

freeCodeCamp Talks

3 жыл бұрын

Next.js is a hybrid React framework allowing you to choose your data fetching strategy on a per-page basis. In this talk, you’ll learn more about CSR (Client-Side Rendering), SSR (Server-Side Rendering), SSG (Static-Site Generation), ISR (Incremental Static Regeneration), and when to use each one. I’ll also give a quick introduction to Next.js and share some of the main features of the framework.
Presenter: Lee Robinson

Пікірлер: 72
@DodaGarcia
@DodaGarcia 3 жыл бұрын
He’s so fun to watch, I wish he’d taught a whole course
@amagiddmxh11
@amagiddmxh11 3 жыл бұрын
He has, check leerob.io
@DodaGarcia
@DodaGarcia 3 жыл бұрын
@@amagiddmxh11 sweet, thank you!!
@vasiovasio
@vasiovasio 2 жыл бұрын
@@amagiddmxh11 thank you!
@cmja09
@cmja09 2 жыл бұрын
If you wanna watch more, he's in Transformers
@shahzadaalihassan_raw
@shahzadaalihassan_raw Жыл бұрын
He does have a full course
@thedigitalceo
@thedigitalceo 2 жыл бұрын
I love NextJS so much. Such a wonderful framework to use for React. This presentation really demonstrates it as well. Great job!
@iliatalebzade8751
@iliatalebzade8751 2 жыл бұрын
Cheers, Lee! I've watched more than 10 videos that explain the concepts of data fetching and rendering with Next.js and none of them were as deep and yet simple as your explanation! keep up the great work 🍻🍻
@yashkhd1100
@yashkhd1100 2 жыл бұрын
This was most clear explanation for the topic. Wish this guy has lot more to share..!!
@enkindel
@enkindel 2 жыл бұрын
Awesome explanation. Very succinct and helpful not like those other tutorials.
@chiragparyani462
@chiragparyani462 2 жыл бұрын
I have been reading, watching concepts around server side rendering from quite some time now, almost everywhere there's theoretical explanations. This explanation is spot on i.e, Theory + Code. For developers Theory is ok but the curiosity of how to write code for it / what is it really doing under the hood is what gives them sleepless nights. I'll sleep well because of this video! Superb stuff!
@boysisig8260
@boysisig8260 Жыл бұрын
Clear and concise explanation. Thank you Lee.
@dzagIT
@dzagIT 2 жыл бұрын
Short, clear and nice explanation.
@codewsohan
@codewsohan 2 жыл бұрын
This video is the best out there to understand the basics of NextJS and to have a good idea about it before learning it, thank you so much!! keep up the good work
@efkang.9116
@efkang.9116 3 жыл бұрын
Amazing work Lee !
@andresvalenzuela
@andresvalenzuela 3 жыл бұрын
Great explanation. I've seen a number of videos about Next and this is the first that mentons revalidate, very useful to replace getServerSideProps in some cases.
@shahzadaalihassan_raw
@shahzadaalihassan_raw Жыл бұрын
It's so fun to watch lee. Love the work!
@ruchiarwal5614
@ruchiarwal5614 2 жыл бұрын
Love you Lee! you are super helpful and time saving.
@prashantjoshi5763
@prashantjoshi5763 3 жыл бұрын
Really liked the pace at which you explained man. amazing 👏
@victordeoliveira344
@victordeoliveira344 3 жыл бұрын
Amazing explanation!
@user-qf2ed1wj3u
@user-qf2ed1wj3u 3 жыл бұрын
Great explanation! Thanks a lot
@Chris-gz4ie
@Chris-gz4ie Жыл бұрын
I was so confused but this guy just summed it up thanks so much
@nietocurcio
@nietocurcio 3 жыл бұрын
Thank you, very good explanation
@kaisbenrhouma
@kaisbenrhouma 2 жыл бұрын
Make a full course man, it's really clear and well done ++
@user-bq4xc2yy3m
@user-bq4xc2yy3m 2 жыл бұрын
this was very helpful thank you
@kylemckell
@kylemckell 3 жыл бұрын
I love Lee!
@shivamsrivastava2645
@shivamsrivastava2645 Жыл бұрын
very easily differentiating concept. Thanks
@mohansaiteki8012
@mohansaiteki8012 3 жыл бұрын
You made me to understand of Next JS
@damislav
@damislav 2 жыл бұрын
Really good talk next is amazing 👍
@albirtarsha5370
@albirtarsha5370 3 жыл бұрын
Excellent presentation. I recently watched videos about react-query. I am curious now about if they could work together or if in situations where the client needs frequent updates that react-query may be superior.
@thequang9234
@thequang9234 Жыл бұрын
extremely well done
@user-mq1zn1cn1j
@user-mq1zn1cn1j 2 жыл бұрын
Thanks Bro , Awesome 🔥
@avneet12284
@avneet12284 3 жыл бұрын
So good
@iamdeveloper2580
@iamdeveloper2580 3 жыл бұрын
Lee what about dynamic routes with ISG? i mean posts/[id]
@armena2866
@armena2866 2 жыл бұрын
Hey it would be great if you could touch more on the use cases of each rendering method
@Mo.Faried
@Mo.Faried 2 жыл бұрын
Awesome
@mohammadraufzahed
@mohammadraufzahed 2 жыл бұрын
nice man.
@lionardo
@lionardo 2 жыл бұрын
this was very helpfull to me. So CSR is over useEffect() and SSR is with getServerSideProps() correct?
@waqasrana5734
@waqasrana5734 3 жыл бұрын
all my work between suspense tag is not showing in page source(cntrl + U )
@AshtonMotana
@AshtonMotana Жыл бұрын
The arguments I've come across so far for server side rendering, don't compel me to go that route. Among a couple things, I'm using a dashboardUXc8btroller fir handling class changes so that I can animate the UI which I don't think would work on SSR as the js file needs to run on the client.
@kirillpavlovskii8342
@kirillpavlovskii8342 2 жыл бұрын
Does next js use express under the hood to rebuild the new page if you use ISR? How does the ISR work under the hood I don't understand how it can understand how to build a new page ,I thought after build you just ship your static files to hosting server and that's it.
@Shawn-Mosher
@Shawn-Mosher 2 жыл бұрын
How would you go about shared data, say you’re pulling data from a graphql and need the data fetched in a header and footer layout on all pages? How would you go about that without query each page and avoiding prop drilling? That would be a cool video to see and understand
@AdvancedNoob40
@AdvancedNoob40 2 жыл бұрын
I am not sure but you can use swr for it.
@rl6382
@rl6382 9 ай бұрын
Contextually wrap all the components you want to pass those props to, then just set props on the target component then set a variable to equal that, then use that variable or directly deconstruct from the functions argument field
@bhuvaneshdesai3053
@bhuvaneshdesai3053 2 жыл бұрын
Hi, i already have a react app, i want to make a particular route in react app as separate next.js app for SEO. please can you tell me how to do or where to start from
@MrPlaiedes
@MrPlaiedes 2 жыл бұрын
Are there plans to support material ui makestyles?
@nouribenz
@nouribenz 2 жыл бұрын
I'm in love with..
@emonymph6911
@emonymph6911 2 жыл бұрын
What are the cost differences between CSR SSR SSG!? Is client side rendering cheaper for your AWS to run? What if you use your own PostgreSQL database is it still cheaper? And by how much!?
@lushanjayanath3834
@lushanjayanath3834 3 жыл бұрын
can we use next.js with asp.net core api (azure)
@vzlomer1000
@vzlomer1000 2 жыл бұрын
Help, how to make a root store and substores using mobX in next js
@showbikshowmma3520
@showbikshowmma3520 2 жыл бұрын
can next js (server side render) manages the routing dynamically without refreshing the page every time a user requests a different route?? plz ans this
@moosegoose1282
@moosegoose1282 2 жыл бұрын
seems like ssr is better in all cases for google indexing no?
@muhammadyusoffjamaluddin
@muhammadyusoffjamaluddin Жыл бұрын
8:39 I'm not sure why he click on the "refresh" button when he just explaining the refresh thing (cache validation etc.). Why press the refresh button when the page should validate itself? Can someone explain what is he explaning actually about?
@firstignitor
@firstignitor 2 жыл бұрын
Lee Robinson .. I have a simple question for you. How old are you, and how long didn't take you to grasp all that technology stack in your head?
@Ihavetoreturnsomevideotapes
@Ihavetoreturnsomevideotapes 2 жыл бұрын
Yeah
@jamalxd5647
@jamalxd5647 Жыл бұрын
Why i can't use DOM selector, useState, and more in nextJS? i'm new anyway.. thanks for everyone who can answer my question simply👍🥰
@okidokiyowyow356
@okidokiyowyow356 3 жыл бұрын
Im beginner at react. Is it good to learn nextjs? In react everytime I fetch it takes me 3-6secs before i see the data.
@ahmadalfan9022
@ahmadalfan9022 3 жыл бұрын
Is that a really big sized data to load? I think understanding the React completely first would be better before jumping into Next.js. Just to make sure you're not confuse about different file structures. Next is simpler especially for the routing, not only that, you'll also get more features than regular React. You need to understand React to understand the benefit of Next features. That's my experience, it might be different with someone else.
@mohammedsaad0761
@mohammedsaad0761 3 жыл бұрын
@@ahmadalfan9022 Nicely Explained ❤️
@lukaakhalbedashvili7167
@lukaakhalbedashvili7167 2 жыл бұрын
something like vercel
@TokyoXtreme
@TokyoXtreme 3 жыл бұрын
solutions architect
@fulstak
@fulstak 3 жыл бұрын
@Kimbra Bedient why do you want to do that? It is like you are a thief and stealing from your close ones, right? And you're boasting about it. Be honorable human being and honor others right for privacy.
@kyrierevival3658
@kyrierevival3658 3 жыл бұрын
@@fulstak thats a scam.
@kyrierevival3658
@kyrierevival3658 3 жыл бұрын
@Frederick Justin thats a scam
@musadulislam3128
@musadulislam3128 Жыл бұрын
Please focus on the discussion topic. This could save time.
@spectredox
@spectredox 2 жыл бұрын
What can't you do with Webpack that NextJS has?
@benwyse
@benwyse 2 жыл бұрын
I took many tutorials on Next. The idea of having React SSR was exciting. But the page route was quickly a disappointment from beginning. and reason why I decided not use Next for any project and even waste my time on it. Page routing is a disaster that PHP tried to fix using some MVC patterns coupled with various server settings. I don't see why Next thought this was a good way to go. I am glad to learn that there is another option. I will check that out. But there so many great options, for me bother with Next's poor choice. Page routing is simply bad programming, and no framework should allow it, let alone enforce it as Next does.
@RikzB
@RikzB 2 жыл бұрын
why page routing is a disaster?
@tharakadoo
@tharakadoo 2 жыл бұрын
cute guy 😜
@chesshooligan1282
@chesshooligan1282 5 ай бұрын
"Solutions Architect" sounds like a bullshit job title.
Do you REALLY need SSR?
18:15
Theo - t3․gg
Рет қаралды 160 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 75 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 18 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 18 МЛН
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 10 МЛН
Next.js App Router: Routing, Data Fetching, Caching
14:32
Vercel
Рет қаралды 295 М.
Все виды Server-side рендеринга в NextJS: SSR, CSR, SSG, ISR
14:39
Веб-разработка - DevMagazine
Рет қаралды 20 М.
SSG vs SSR Explained in 10 Minutes (For Beginners)
8:52
James Q Quick
Рет қаралды 13 М.
Client Side Data Fetching in NextJS | NextJS in Hindi
19:29
Piyush Garg
Рет қаралды 13 М.
What is CSR SSR SSG and ISR
16:57
Hitesh Choudhary
Рет қаралды 45 М.
NextJS 12.1 SSR & SSG: Everything you need to know
31:18
Jack Herrington
Рет қаралды 98 М.
10 Rendering Patterns for Web Apps
6:55
Beyond Fireship
Рет қаралды 323 М.
Next.js isn't React
17:11
JavaScript Mastery
Рет қаралды 198 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 18 МЛН