⚡ Master useCallback - Hook tối ưu hóa performance bằng cách memoize functions, ngăn chặn unnecessary re-renders và cải thiện hiệu suất ứng dụng React
Hook để memoize functions và tối ưu performance
useCallback là một Hook cho phép bạn memoize một function để nó không bị tạo lại trong mỗi lần render, trừ khi dependencies thay đổi. Điều này giúp tối ưu hóa performance khi pass functions xuống child components.