Why is it dangerous to optimize React 'by eye'?
Answer
•The problem is often not where it seems.
•useMemo/useCallback can worsen performance.
•You need React DevTools profiler.
•Measure before/after.
•Optimization should be justified.
Was this answer helpful?