I'm learning about hooks in React, but I have a doubt, in useEffect an action is executed only once (if there is no change in dependencies), but in useCallback it is also like this, useCallback allows executing a function only once too, if on re-rendering the dependencies are not changed. So what's the difference in them in regards to that.
A clear explanation of the differences between useEffect and useCallback