When to use useCallback, useMemo and useEffect ?
The useCallback hook is used to memoize the functions to prevent unnecessary re-renders, while useMemo is used to memoize the computed outputs, and useEffect performs sideEffects in a React application.The useCallback, useMemo, and useEffect are used to optimize the performance and manage the side e