DEV Community

Andrew Jones
Andrew Jones

Posted on

Simple explanation of the difference between React.useCallback and React.useMemo

React.useMemo(func) saves the RESULT of executing func().

React.useCallback(func) saves func ITSELF without executing func.

Discussion (0)