React·100 questions

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?

More questions in this topic

Related questions from other topics