DEV Community

Discussion on: When to use useCallback - ReactJS?

Collapse
 
boywithsilverwings profile image
Agney Menon

If the function you are passing down is going to be used as a useEffect (or some kind off) dependency in the Child, then yes.