useMemo and useCallback
Last updated
Was this helpful?
const memoValue = useMemo(callback, optionalArgumentList);Where :
memoValue : Return memorized by useMemo.
callback: Function that is executed one or more times according to optionalArgumentList.
optionalArgumentList: Array of arguments that controls the execution of callback, if an argument of optionalArgumentList changes it will trigger that callback is executed again.
Hook that allows you to memorize a callback so that it keeps its scope
const memoCallback = useCallack(callback, optionalArgumentList);Where:
memoCallback : Return memorized by useCallback.
Last updated
Was this helpful?
Was this helpful?
