DEV Community

loading...

Discussion on: When to use useCallback - ReactJS?

Collapse
boywithsilverwings profile image
Agney Menon Author

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.