Coded to understand without useCallback vs with useCallback.
Learned how function references change on re-renders.
useCallback helps in preventing unnecessary child component re-renders.
#React #useCallback #ReactOptimization