To memoize functions defined within the component's scope, you need to explicitly use the useMemo hook to ensure that they are memoized properly.
Question 10 of 20 in useMemo