I have seen many useCallback and useMemo usages with dependencies are primitives. So what if the dependencies are reference values, e.g. array or function is it okay to use these hooks with reference dependencies? and does the dependencies comparison work as the way they do with reference value?
submitted by /u/kyllie-dave
[link] [comments]