useMemo and useCallback
Syntax
Where :
memoValue
: Return memorized by useMemo.callback
: Function that is executed one or more times according tooptionalArgumentList
.optionalArgumentList
: Array of arguments that controls the execution ofcallback
, if an argument ofoptionalArgumentList
changes it will trigger thatcallback
is executed again.
useCallback
Hook that allows you to memorize a callback so that it keeps its scope
Where:
memoCallback
: Return memorized by useCallback.
Last updated