React JS Interview Questions ( useMemo Hook Polyfill )- Frontend Machine Coding Interview Experience

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 46

  • @RoadsideCoder
    @RoadsideCoder  ปีที่แล้ว +1

    🔴 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

  • @kavyar8579
    @kavyar8579 ปีที่แล้ว +1

    Woah, that was clean 🔥

  • @RavindraSingh-lp9pl
    @RavindraSingh-lp9pl ปีที่แล้ว +2

    @roadside coder...you are kinf of React bro...very useful tutorial..please make few more on machine coding

  • @Ameersoccerdev
    @Ameersoccerdev ปีที่แล้ว +1

    Yes plz keep making dsa in js we wait every weekend

  • @raki0125
    @raki0125 ปีที่แล้ว

    Yes in depth needed

  • @JudoboyAlex
    @JudoboyAlex ปีที่แล้ว +2

    Please create a video on how react works or when it re-renders.

  • @nileshdeshmukh7841
    @nileshdeshmukh7841 ปีที่แล้ว +1

    Please explain useRef in Details & How React Internally works in Depth

  • @shagunpreetsingh7105
    @shagunpreetsingh7105 ปีที่แล้ว +2

    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 😊

    • @RoadsideCoder
      @RoadsideCoder  ปีที่แล้ว +1

      Another way to compare the deps is to stringify both objects, that would also work.

    • @shagunpreetsingh7105
      @shagunpreetsingh7105 ปีที่แล้ว

      @@RoadsideCoder yup that'd work

    • @akashchakroborty2665
      @akashchakroborty2665 ปีที่แล้ว

      Thats not the ideal way to compare dependencies in hook. Remember React uses Object.is() to compare dependencies so its always Shallow comparison.

    • @stackdeveloper6614
      @stackdeveloper6614 8 หลายเดือนก่อน

      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

  • @rajkumart08
    @rajkumart08 4 หลายเดือนก่อน

    Please create a video on how react works or when it re-renders.

    • @RoadsideCoder
      @RoadsideCoder  4 หลายเดือนก่อน

      Already made here - roadsidecoder.com/course-details

    • @rajkumart08
      @rajkumart08 4 หลายเดือนก่อน

      @@RoadsideCoder can you let me know under which topic?

  • @hrithikraj2147
    @hrithikraj2147 2 วันที่ผ่านมา

    what if the overall order has changed, even though the same values exist it will recalculate ?

  • @018_anirudh3
    @018_anirudh3 ปีที่แล้ว

    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 .

  • @umargulzar2982
    @umargulzar2982 ปีที่แล้ว +1

    please make videos for Senior Front End Engineer from Javascript to React.

  • @oriongaming2770
    @oriongaming2770 ปีที่แล้ว

    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 ?

  • @chandruloganathan3725
    @chandruloganathan3725 ปีที่แล้ว +1

    Bro make a video on reactjs folder structure and how to build the reuseable hooks please please please🙏

  • @upendrasinghbhadouria
    @upendrasinghbhadouria 5 หลายเดือนก่อน

    can you please create own useState hook

  • @hardikpandey6743
    @hardikpandey6743 11 หลายเดือนก่อน

    Make a video on how react works!!

  • @santoshsalawadagi6809
    @santoshsalawadagi6809 ปีที่แล้ว +1

    Make How react work video ❤😊

  • @ariftraideas
    @ariftraideas ปีที่แล้ว

    plz make videos how react works in depth

  • @mithiladk8118
    @mithiladk8118 ปีที่แล้ว

    Sir , please make a video on how react works

  • @kumardeepaksah37
    @kumardeepaksah37 10 หลายเดือนก่อน

    Can you tell me how to manage crawling issue in cra react 18 and improve seo of react apps

    • @RoadsideCoder
      @RoadsideCoder  10 หลายเดือนก่อน

      use server side rendering

  • @karthikeyannagarajan4693
    @karthikeyannagarajan4693 ปีที่แล้ว

    Hi, Really nice one. Would you possiablr create project with DSA implmentaion with typescript it would you helpful to understand DSA React with typescript

  • @satadhi
    @satadhi 9 หลายเดือนก่อน

    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 ?

    • @abhinavsingh9854
      @abhinavsingh9854 8 หลายเดือนก่อน

      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

  • @mohitjassal629
    @mohitjassal629 ปีที่แล้ว

    how react works .. pls make video on it sir ❤

  • @jaydeep-p
    @jaydeep-p ปีที่แล้ว

    What camera are you using?

  • @Rahuljain-vf1sj
    @Rahuljain-vf1sj ปีที่แล้ว

    If I will pass different callback (function) with same dependency , it will give me cached response of previous callback ? which is not right ? @RoadsideCoder

    • @RoadsideCoder
      @RoadsideCoder  ปีที่แล้ว

      no it wont, because that will be a completely different useMemo, u can't dynamically change callbacks in a usememo hook

  • @ayushsrivastava918
    @ayushsrivastava918 ปีที่แล้ว

    make video on how react works

  • @mohammedfaseeullah6095
    @mohammedfaseeullah6095 ปีที่แล้ว +5

    Bro, don't forget about the data and algos❤

  • @rahulcse3970
    @rahulcse3970 8 หลายเดือนก่อน

    Can you make polyfill of React.memo()

  • @gauravpandey-fx9hk
    @gauravpandey-fx9hk ปีที่แล้ว

    Don't have ig account

  • @alishmadhukar2177
    @alishmadhukar2177 ปีที่แล้ว

    Please create advance level......reactjs video

  • @davidwilson6659
    @davidwilson6659 ปีที่แล้ว

    kindly share your email

    • @RoadsideCoder
      @RoadsideCoder  ปีที่แล้ว

      please reach out to me on instagram @roadsidecoder

  • @shaheer8681
    @shaheer8681 ปีที่แล้ว

    please make a video on how react works