Skip to content

useEventCallback

Function
useEventCallback(fnany): (argsany[]) => any

A hook used to memoize a function that is used as a callback. Used if you want create a memoized callback with multiple dependencies. https://github.com/facebook/react/issues/14099#issuecomment-440013892

Parameters
ParameterType
fnany
Returns 
(argsany[]) => any
    function(argsany[]): any
    Parameters
    ParameterType
    argsany[]
    Returns 
    any

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.