🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details 🟪 Follow me on Instagram and u will clear your interview 🤓 - instagram.com/roadsidecoder/ ➡ Book an Interview Preparation call with me ( 20% OFF for limited time ) - topmate.io/roadsidecoder
Great video bro... I just wanted to know... I may be incorrext at this.. but what would happen if prevDep[i] and nextDep[i] both are some objects maybe deeply nested objects, don't we need to do a depth comparison of both in that case. I'll be waiting for your views on this @RoadsideCoder 😊
React compares the dependcies using Object.is() function which only does a shallow comparison of the objects. So, we should not do deep comparison. If objects refer to the same memory between rerenders, they are same
at 5:00 cant we wrap sqauredValue function into useEffect and made it execute whenever increment btn is fired. also if possible create a video explaining which hook to use when .
at 14:00 . If we compare the prev and next deps with index , does that work if my next deps array order change but values are same as previous ? Also check for the length equal does affect if I add 1 more dep in the next deps array ?
Hi, Really nice one. Would you possiablr create project with DSA implmentaion with typescript it would you helpful to understand DSA React with typescript
can someone tell me how useEffect is getting used in customHook function which is not a React function ? I mean useEffect has meanin only in react components right ? what am i missing here ?
All the rules applicable for react functional components will holds valid for react hooks as well. That's why you can use react builtin hooks inside react Custom hooks
If I will pass different callback (function) with same dependency , it will give me cached response of previous callback ? which is not right ? @RoadsideCoder
🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details
🟪 Follow me on Instagram and u will clear your interview 🤓 - instagram.com/roadsidecoder/
➡ Book an Interview Preparation call with me ( 20% OFF for limited time ) - topmate.io/roadsidecoder
Woah, that was clean 🔥
@roadside coder...you are kinf of React bro...very useful tutorial..please make few more on machine coding
Yes plz keep making dsa in js we wait every weekend
Yes in depth needed
Please create a video on how react works or when it re-renders.
Cause of the reconciliation
Please explain useRef in Details & How React Internally works in Depth
Great video bro... I just wanted to know... I may be incorrext at this.. but what would happen if prevDep[i] and nextDep[i] both are some objects maybe deeply nested objects, don't we need to do a depth comparison of both in that case.
I'll be waiting for your views on this @RoadsideCoder 😊
Another way to compare the deps is to stringify both objects, that would also work.
@@RoadsideCoder yup that'd work
Thats not the ideal way to compare dependencies in hook. Remember React uses Object.is() to compare dependencies so its always Shallow comparison.
React compares the dependcies using Object.is() function which only does a shallow comparison of the objects. So, we should not do deep comparison.
If objects refer to the same memory between rerenders, they are same
Please create a video on how react works or when it re-renders.
Already made here - roadsidecoder.com/course-details
@@RoadsideCoder can you let me know under which topic?
what if the overall order has changed, even though the same values exist it will recalculate ?
at 5:00 cant we wrap sqauredValue function into useEffect and made it execute whenever increment btn is fired.
also if possible create a video explaining which hook to use when .
please make videos for Senior Front End Engineer from Javascript to React.
at 14:00 . If we compare the prev and next deps with index , does that work if my next deps array order change but values are same as previous ? Also check for the length equal does affect if I add 1 more dep in the next deps array ?
Bro make a video on reactjs folder structure and how to build the reuseable hooks please please please🙏
can you please create own useState hook
Make a video on how react works!!
Make How react work video ❤😊
plz make videos how react works in depth
Sir , please make a video on how react works
Can you tell me how to manage crawling issue in cra react 18 and improve seo of react apps
use server side rendering
Hi, Really nice one. Would you possiablr create project with DSA implmentaion with typescript it would you helpful to understand DSA React with typescript
can someone tell me how useEffect is getting used in customHook function which is not a React function ? I mean useEffect has meanin only in react components right ? what am i missing here ?
All the rules applicable for react functional components will holds valid for react hooks as well. That's why you can use react builtin hooks inside react Custom hooks
how react works .. pls make video on it sir ❤
What camera are you using?
If I will pass different callback (function) with same dependency , it will give me cached response of previous callback ? which is not right ? @RoadsideCoder
no it wont, because that will be a completely different useMemo, u can't dynamically change callbacks in a usememo hook
make video on how react works
Bro, don't forget about the data and algos❤
Can you make polyfill of React.memo()
Don't have ig account
Please create advance level......reactjs video
kindly share your email
please reach out to me on instagram @roadsidecoder
please make a video on how react works