Q. How can you optimize performance in React when passing functions to child components?
β
Correct Answer: (A)
Use useCallback to memoize the functions
Explanation: Memoizing functions prevents unnecessary re-renders.