React JS Machine Coding Interview Questions - Navigation Component in React

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 11

  • @codeforinterview
    @codeforinterview  6 місяців тому

    Watch the next video in React Interview Machine Coding Series
    ua-cam.com/video/stT1O2WZTWw/v-deo.html

  • @World_information5568
    @World_information5568 6 місяців тому

    Thank you very much Sir❤❤❤❤❤

  • @iamakashkumarram
    @iamakashkumarram 6 місяців тому

    Awesome series ❤

  • @krishpatel9248
    @krishpatel9248 6 місяців тому

    Very nice explanation. But will this solution work when the dataset is very large? And how can we optimize it?

    • @codeforinterview
      @codeforinterview  6 місяців тому

      It will work if the dataset is large, with some optimizations like:
      1: we can use useCallback to memoize the results
      const moveUpward = useCallback((index) => {}, [locations]);
      const moveDownward = useCallback((index) => {}, [locations]);
      2: Using a key prop; to ensure each mapped item has a unique key prop
      3: We can use a library react-window; to only render the visible portion of the list

  • @MuhammadAbdullah-fr1fu
    @MuhammadAbdullah-fr1fu 6 місяців тому

    Bro ma na recently flipkart project aap ka complete daikha hai MERN stack ka. Bohat si cheezein seekhna ko mili. Bro us ma aap na redux store ka jo use kia. Kia ab in 2024 ma bi Hamain Wohi tareeqa use karna chahiye ya redux toolkit ka use karain. Aur agar redux toolkit ka use karna chahiye to kindly us pr bi aik complete video banaa dein project ki Surat ma ya jesa bi aap ko sai lagaa. Ya already aap na banai hai to kindly mujhay us ka link send kar dein❤

    • @codeforinterview
      @codeforinterview  6 місяців тому +1

      You can use both, the basic concept is same; with redux toolkit you will get syntax improvements. You can check the below video for redux toolkit implementation
      ua-cam.com/video/0UJ8TPg1yiE/v-deo.html

  • @corianderleaff
    @corianderleaff 6 місяців тому

    correction in moveDownward funtion if (index === data.length - 1) return;

    • @codeforinterview
      @codeforinterview  6 місяців тому

      glad you are paying attention to the details ✔