13 - What is React memo - How to use it - When not to use React memo - What is Memoization in React?

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

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

  • @tapasadhikary
    @tapasadhikary  2 ปีที่แล้ว

    Timecodes
    0:00 - Introduction
    00:43 - What is Memoization in React?
    07:02 - How to use React.memo in React?
    11:51 - When not to use React.memo?
    13:02 - Wrapping up & What's Next?

  • @VishalKumar-mi6ed
    @VishalKumar-mi6ed 2 หลายเดือนก่อน

    What a beautiful way of explaining tapas 😮
    I can’t enough thanks to you🙏

    • @tapasadhikary
      @tapasadhikary  2 หลายเดือนก่อน +1

      You are most welcome ❤️

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

    Great video as expected. Tapas makes difficult concepts easy to understand

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

    Good explanation of how 'memo' works. Impatient to see the next videos.

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

    great explanation for the infinite times sir @tapas. Thank you.

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

    Most wanted topic 😊

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

      Thanks! Hope it was clear 👍

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

    Hello Tapas, your viedos are really amazing. crisp explanations, anybody can understand.. i have a question.. What's real use case to use React.memo? have you ever used in your projects? if so, please comment back the use case. For me expensive computation are db calls, but we can't use because url remains same but data keep changing. other than that math operations? it shouldn't be an expensive operations.

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

      Thank you!
      You have asked a great question. Here is my response:
      the useMemo hook returns a memorized value. It means it will not resompute the values for the successive occasions. That saves your computation time and make the app faster.
      Think about operations like search, filter, sort happening on the larger set of data that is already available on the client side. Or you are applying an ML model on a data set available locally on the browser. You may not want to compute it everytime is the same output is expected for the same input. That will be a use case where you want to use this hook.
      I hope it clarifies!

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

      @@tapasadhikary , yeah I see… Thank you so much for your kind reply

  • @rakeshkumaryadav1117
    @rakeshkumaryadav1117 6 หลายเดือนก่อน +1

    ❤❤

  • @AmanKumar-ps8th
    @AmanKumar-ps8th 11 หลายเดือนก่อน

    great video but what i found is when we don't use memo in child component and without passing props to child component it also re-renders just directly imported child component . so definition of react memo is not appropriate i.e Using memo will cause React to skip rendering a component if its props have not changed. could you please clarify here? Thanks