What does the useCallback hook primarily do in React?
-
A
It memoizes a callback function so it only changes if its dependencies change
-
B
It automatically calls a function every render
-
C
It replaces the need for event handlers in functional components
-
D
It creates a new function on every render for performance