useCallback

How does the useCallback hook handle functions defined within the component's scope?