Тёмный

ReactJS Tutorial - 26 - Pure Components 

Codevolution
Подписаться 670 тыс.
Просмотров 354 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 158   
@kimbanzip
@kimbanzip 3 года назад
The explanations are super clear and detailed. I can't believe it's free. You're doing God's work bro.
@subhranil764
@subhranil764 3 года назад
True:). This man deserve respect, kudos!
@shineLouisShine
@shineLouisShine Год назад
A very good Karma, no doubt..
@estengrove3350
@estengrove3350 5 лет назад
Very detailed explanation. Well done, man! You cover so many of the lesser covered topics that are integral in understanding what's happening "Under-the-hood". Much appreciated
@harshjaiswal3947
@harshjaiswal3947 5 лет назад
Finally someone explained what shallow comparison is and when to use Pure Components. Thanks a lot !!
@huanshao2165
@huanshao2165 4 года назад
Best of best reactjs tutorial on the planet!
@vidtuber4272
@vidtuber4272 8 месяцев назад
I consider myself fortunate to have stumbled upon this channel. Your crystal clear explanations are truly appreciated. Thank you very much.
@CknSalad
@CknSalad 5 лет назад
these lessons have a natural progression and have just the right amount of 'repeating'. react team should hire you to do the docs lol.
@subhranil764
@subhranil764 3 года назад
True
@dheerajnagar9742
@dheerajnagar9742 3 года назад
Usually I don't comment, but your teaching took me here... You are awesome bro, you clearly explained every single point. Thanks
@itgiants5218
@itgiants5218 3 года назад
Just WooW, the amount of information I have learned is tremendous, you're really a good teacher I like the way you explain the lessons with, please keep it up I wish I knew you a long time ago.
@__sagar_shah__591
@__sagar_shah__591 4 года назад
You jst became my guardian angel man..... Thanks for the all hardword you out in.
@rajnandanibhawsar3105
@rajnandanibhawsar3105 2 года назад
I give you like before watching your video. Because I have Vishwas that you will explain perfectly every time.💯
@austinjohn8713
@austinjohn8713 3 года назад
your series is much more than a tutorial. it is a lecture series that include tutorials. Your teaching style far exceed anything on RU-vid in techniqcal training. i had to come here to understand the motivation for pure components as well as what shallow comparison is
@donatobaonguis4315
@donatobaonguis4315 4 года назад
Great tutorial..concise, direct to the point and very clear explanation and communication! Thank you, sir!
@nkbanerjee2549
@nkbanerjee2549 Год назад
Oh my god...the best of till now...i can't even imagine that it's absolutely free...kudos to you buddy 🔥
@becauseistand
@becauseistand 5 лет назад
brilliant explanation, sir. Thank you
@aribkamal3239
@aribkamal3239 2 года назад
This guy provides the best education for free. I would have never understood this anywhere else
@zoalerix
@zoalerix 3 года назад
This guy is a beast, appreciate it this so much!
@chetanchavan3466
@chetanchavan3466 2 месяца назад
You are just great!!! You just explain entire react documentation. Better than documents contents...
@MaheshKumar-lo7hj
@MaheshKumar-lo7hj 5 лет назад
Wonderful Lectures I am seeing on react. Please Please go ahead like this.
@muhammaddavatgar4973
@muhammaddavatgar4973 4 года назад
most complete tutorial on youtube
@samialvi4226
@samialvi4226 Месяц назад
Vishwas deserves 100M subs tbh. What a Teacher he is!!!!!
@ramioooz
@ramioooz 11 месяцев назад
A very high-quality lesson. This cant be topped out. Thank you very much, Vishwas.
@garikmelqonyan6011
@garikmelqonyan6011 2 года назад
Thanks for all these tutorials, man. You are definitely one of the bests on whole youtube.
@parthapaul1249
@parthapaul1249 3 года назад
अद्भुत वीडियो है। .धन्यवाद आचार्य 🙏
@centaur26
@centaur26 3 года назад
Hi Vishwas, I really wanna thank you for the the time you've taken create this wonderful series, this video was beautifully explained. cheers
@umangkumar6568
@umangkumar6568 4 года назад
Very good explanation, Sir.
@vigneshgvs
@vigneshgvs 2 года назад
PureComponent - renders only if there is a Shallow change b/w values Regular component - always renders. 1. Shallow comparison : primitive - just value; complex - references. 2. if parent has pureComponent - then child also will not rerender.......
@prasadbuddhala758
@prasadbuddhala758 4 месяца назад
Crystal clear explanation ❤ Keep up all the good work bro
@AbdelhameedG
@AbdelhameedG 4 года назад
Thanks Mate! best pure component explanation I've seen
@harendrapanda7530
@harendrapanda7530 5 лет назад
Thank you very much for sharing in-depth knowledge...
@adriantolero6687
@adriantolero6687 2 года назад
Thank you so much for this topic. The explanations are crystal clear. I wish you were my professor when I was in college. XD
@fredgarati
@fredgarati 3 года назад
This guy is some kind of hero....
@FunnyFlicks121
@FunnyFlicks121 3 года назад
Such a best and free content Thank you Sir!
@hoelefouk
@hoelefouk 4 года назад
Good job vishwas!
@aakashjadhav327
@aakashjadhav327 2 года назад
binge watching code evolution
@arielspalter7425
@arielspalter7425 4 года назад
Super high quality content. Thanks! Subscribed.
@TamNguyen-kj5yo
@TamNguyen-kj5yo 3 года назад
Thank you for your clearly expanations! That helps me a lot.
@dilpreetkaur2862
@dilpreetkaur2862 4 года назад
At 10:20, why don't we see re render in parent component? Its clearly see that prevState is not equal to this.state because both points to different reference. We are not comparing values for objects as per shallow comparison? Please explain.
@matteol1778
@matteol1778 3 года назад
Bro, you are a living legend
@Genki_Studios
@Genki_Studios 4 года назад
Sending many thanks for this awesome tutorial
@asifurrahman5436
@asifurrahman5436 3 года назад
In details explanation, Loved it
@gayathrithedev
@gayathrithedev 4 года назад
Great explanation with easy example. Thanks a lot
@lathagm666
@lathagm666 11 месяцев назад
completed video 26. Thank you 🙂
@jagdishshetty4782
@jagdishshetty4782 5 лет назад
Great tutorial !!!
@anandagar2k
@anandagar2k 2 года назад
I am confused on setState react will call the render method only if it has any change in the state but here it keeps set the name as vishwas then how it call render method again and again please clarify
@objectObject212
@objectObject212 5 лет назад
great explanation! thx
@arunlabana5937
@arunlabana5937 3 года назад
Hello sir. Sir in pure and regular component you have not accessed props like previous videos. In previous videos you used render(props){ Bla bla... } But here you used render(){ Bla bla... }. So, is it correct syntax you used in this video?
@talivanov93
@talivanov93 4 года назад
Great explanation. Help me a lot!
@venkatkosuri5224
@venkatkosuri5224 3 года назад
Thank you Vishwas ❤️
@viktorsavchenko2061
@viktorsavchenko2061 3 года назад
Hi, thank you very much for such a detailed explanation
@ashwinig8217
@ashwinig8217 2 года назад
very clear explanation. thank you so much for that. i have a doubt that even it support performance boost, why cant we use pure components only instead of components
@asashish905
@asashish905 4 года назад
Well, I did not get the last part. :-( Is it like, we should not make changes in the state by changing /adding/ removing the data in the state object? instead, we should return a brand new object and as a new state? Please, anyone!
@shaheerzaman620
@shaheerzaman620 4 года назад
Basically create a new array with the elements instead of pushing the element in the original array. If you mutate the original array, in pure components re-rendering will not take place.
@freshenup6195
@freshenup6195 4 года назад
In pure comonents when rerendering, it will not check if the values in for example your array have changed. It will check if the object refrence is still the same. If it is it wont rerender. But it your create and populate a new object with your values. It will change and rerender the component
@lichaytiram9246
@lichaytiram9246 5 лет назад
hi sir , 7:34 have a little mistake - shallow comparison return false while a and b are strictly equal.
@paramvirsingh5638
@paramvirsingh5638 4 года назад
He is talking about exact reference in Complex types. With that he is correct
@kirankamath5891
@kirankamath5891 3 года назад
I got now what exactly is pure and how it improves performance , one question i have in mind , if i add shouldcomponentupdate to regular component , will it be converted to PureComponent?
@onf3257
@onf3257 Год назад
Amazing teacher
@venkatkosuri5224
@venkatkosuri5224 3 года назад
You're videos are awesome ❤️
@massiveblackwood
@massiveblackwood 3 года назад
good series for lazy guy like me, 4th day on react and this always bring me back since you almost covered all do's and donts on every section just amazing thanks
@barkaouimohamed
@barkaouimohamed 2 года назад
Very detailed explanation Thaaaaank you
@אפרתונסו
@אפרתונסו 3 года назад
could u please remind me why u always delete the 'export'?
@berkgaffaroglu8614
@berkgaffaroglu8614 4 года назад
That was epic!
@freshcodes
@freshcodes Год назад
i didn;t understand shallow comparison, we are not say that `setState` return new state? hence new reference even if properties is the same, then Pure Component should re-render when we calling setState whenever.
@regissmukubiza6350
@regissmukubiza6350 2 года назад
This Tuto is useful. Thank you
@mohdirshad7983
@mohdirshad7983 4 года назад
thanks Sir very neat explanation .
@fitindiandev4112
@fitindiandev4112 3 года назад
Great work bro
@Aditya.Santra
@Aditya.Santra 3 года назад
Very Helpful Video
@ivan-the-l
@ivan-the-l 4 года назад
Nice explanation!
@anshulsinghla998
@anshulsinghla998 3 года назад
The Indian version of Kent . C Dodds or I would say even better than Kent. Thanks Vishwas
@Nikhilsharma-dp9tw
@Nikhilsharma-dp9tw 3 года назад
Works like purepipes in angular. 😀
@elhousseyn_arab
@elhousseyn_arab 4 года назад
sir on 7:41 String isn't a primitive type is an object
@shineLouisShine
@shineLouisShine Год назад
Thank you, champ.
@zoranristevski4553
@zoranristevski4553 Год назад
In the console I get double actions, instead of one.
@prisinha
@prisinha 2 года назад
6:33 difference between pure component and regular component
@prisinha
@prisinha 2 года назад
8:55 pure component renders only when there is a difference between prevState and currentState
@calvinalfredo2124
@calvinalfredo2124 Год назад
is there any reason to get rid of the named exports and instead use the default exports when dealing with class component?
@shubhamhirap3305
@shubhamhirap3305 4 года назад
I got error with this code. can you help me?
@ינוןאלבז-כ1ז
@ינוןאלבז-כ1ז 4 года назад
Very very good and fun 👍👍👍
@TheDivyansh007
@TheDivyansh007 4 года назад
So it is better to use pure components always than regular one?
@abhishekjain6234
@abhishekjain6234 4 года назад
Where can we find the slides????
@harmanpreetbhatti4354
@harmanpreetbhatti4354 4 года назад
Thank you for such wonderful content. Here, in Regular Component, if we write a shouldComponentupdate method with shallow comparison of props/state, would that make it equivalent to Pure Component?
@subhranil764
@subhranil764 3 года назад
yeah i think so. But why should you put so much effort if it can be done easily with pure component, lol.
@somasundaramkonda
@somasundaramkonda Год назад
Hi sir, you explained all most all of the react topics in class components not in functional components. Now a days all the companies are using functional components. Let me know pure components can use in functional components.
@prisinha
@prisinha 2 года назад
5:30 console.log output shows that pure component output appears only once
@pasindu-jayasinghe
@pasindu-jayasinghe 3 года назад
How solve this error? Warning: PureComponent(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.
@ahsanulkabir8640
@ahsanulkabir8640 Год назад
Just WOOOOOOWWWW!!!
@navyaenneti877
@navyaenneti877 4 года назад
nice explanation...
@tejeshwarshivanandan4966
@tejeshwarshivanandan4966 4 года назад
Console.log is getting executed twice where as console.log in purecomponent is not getting executed even once can anyone help me with this issue?
@mrhimal
@mrhimal 4 года назад
Remove from index.js
@adhupraba
@adhupraba 4 года назад
@@mrhimal even now pure component is not getting printed... Only regular component is printed
@sukantarora1039
@sukantarora1039 4 года назад
same problem , you found the solution ?
@gillianbc
@gillianbc 3 года назад
I'm still not clear. Why wouldn't we use pure components rather than regular ones all the time? When is it advantageous to use a regular one rather than a pure one?
@Javlini
@Javlini 2 года назад
From what I understand, if you want to have control over the rerender of the component you use PureComponent, if you want it to rerender no matter what, you use regular components. Basically you avoid the component to rerender when you dont want it to, which boosts performance when using PureComponents.
@raghavakg1052
@raghavakg1052 4 года назад
In console ,im getting all the three components : parent ,regular nd pure components ....can anyone help me out??
@rohitchaudhari3343
@rohitchaudhari3343 4 года назад
Really very nice
@yagyikdprajapat5414
@yagyikdprajapat5414 2 года назад
hey, can you please share powerpoint presentation? It would help us a lot!!
@lolasdasad
@lolasdasad 4 года назад
Really thx man!!!!
@jsampat761
@jsampat761 5 лет назад
Great information
@prisinha
@prisinha 2 года назад
6:44 pure component implements shouldComponentUpdate with shallow props and state comparison
@iUmerFarooq
@iUmerFarooq 4 года назад
It means when we use *PureComponent* as a *Parent* then we also need to use *children* as a *PureComponent*?
@Virus-ke8xj
@Virus-ke8xj 4 года назад
Not necessarily
@venkatkosuri5224
@venkatkosuri5224 3 года назад
Keep sharing
@adelprog
@adelprog 3 года назад
you are the best
@icebare139
@icebare139 3 года назад
Is there has pure component in functional component?
@chillappreciator885
@chillappreciator885 3 года назад
I didn't get why not to use PureComponents most of the time?
@yashraj6565
@yashraj6565 3 года назад
My pureComp also rendering. Wht should i do?
@amanali9501
@amanali9501 3 года назад
Which extension of vscode you are using 🙏🙏
@simple8810
@simple8810 3 года назад
Even I did change Value of name in this.setstate(){ name: 'Hassan"} Instead of Vishvas ,still the result is same why? means pure component is not printing in console ,?
@ManishSingh-lk4qs
@ManishSingh-lk4qs 5 лет назад
Perfect..
Далее