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

Поділитися
Вставка
  • Опубліковано 1 лют 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 4 дні тому

    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

  • @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