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