How does useCallback help in optimizing the performance of child components?
UseCallback optimizes the performance of child components by memoizing functions passed as props, ensuring that they don't change unnecessarily between renders and minimizing re-renders triggered by function changes.