What is the impact of using useMemo on the component's memory usage?
UseMemo reduces memory consumption by memoizing function results, ensuring that they are not recomputed on every render and are instead reused when their dependencies remain unchanged.