What is the impact of using useCallback on the component's memory usage?
UseCallback reduces memory consumption by memoizing functions, ensuring that they are not recreated on every render and are instead reused when their dependencies remain unchanged.