reactjs(useCallback Hook)
useCallback(fn, dependencies)
parameters:
Pass a function and the list of dependencies.
Returns:
It returns a memoized/cached copy of function passed to it, and only changes if one of the dependencies changes.
Call useCallback hook at the top level o...
shivrajdeopa.hashnode.dev2 min read