React Optimization, useCallback Hook & React.memo HOC in React JS |React JS in Tamil |Tamil Skillhub

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

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

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

    Thanks it's full 🌕🌝.
    Please continue to reactjs with redux. And projects...
    Many projects

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

    Thanks its very useful

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

    good bro...
    One doubts, useMomo is return memoized value,
    use call back is return memoized function ... this two line I am not able to understand clearly please explain me man

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

      So if you have created any function and assign it to an variable on each state change the component will create new function each time. So to avoid that we are using useCallback. Same vice versa for useMemo also to Perform any operation and return a value after execution of function only if any state changed then we will use useMemo. By using both we can avoid unwanted rerendeing of child components.

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

    React.memo check the child componet value if changes then re render else no need same time usecallback only re render if the value of component is change else re render use case no need to re render whole component that's my understand is it correct

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

      React.memo is a higher-order component that optimizes performance by memoizing the result of a component's render. It helps in preventing unnecessary re-renders when the component's props haven't changed