In the react beta docs, useCallback api reference page gives the following example

I think the constant naming memoizedFn leads to some confusion on what useCallback does.
People tend to assume that useCallback actually memoizes the function but it does not do that. It returns the same instance of the function between re-renders.
An appropriate name of that variable should be originalFn.
I maybe wrong so please let me know if the above makes sense.
Big fan of the beta docs btw ❤️ , beautiful documentation and excellent examples!
In the react beta docs,

useCallbackapi reference page gives the following exampleI think the constant naming
memoizedFnleads to some confusion on whatuseCallbackdoes.People tend to assume that
useCallbackactually memoizes the function but it does not do that. It returns the same instance of the function between re-renders.An appropriate name of that variable should be
originalFn.I maybe wrong so please let me know if the above makes sense.
Big fan of the beta docs btw ❤️ , beautiful documentation and excellent examples!