3 ms·
The main use for useCallback is to add a callback to a useEffect dependency array without it running on every render.
by graftak 4y ago
The main use for useCallback is to add a callback to a useEffect dependency array without it running on every render.