Author: Prathu Tiwari

useMemoIt is a react hook that lets you cache the calculation results between re-renders.Problem ⇒ React renders the component on every state change so if we are doing some heavy operation it will render the component with the whole operation on every small change also. Solution ⇒ Such type of issue can be solved with the help of memoization or useMemo. That means it caches the heavy operations calculations between every re-renders.useCallbackIt is a react hook that lets you cache a function definition between re-renders.useRefIt is a react hook that lets you reference a value that’s not needed for rendering.When…

Read More