This article clarifies the distinction between React's render, reconciliation, and commit phases to explain performance optimization. It argues that developers should prioritize fixing inherently slow rendering logic using profiling tools before focusing on minimizing the frequency of re-renders.
Key points
React's rendering process consists of three distinct phases: render (calling functions), reconciliation (comparing elements), and commit (updating the DOM).
A 'render' is not inherently slow, but slow logic inside components leads to poor performance regardless of how often they re-render.
Developers should use browser and React DevTools profilers to identify and fix slow rendering functions before attempting to optimize re-render frequency.
Batching is React's mechanism for minimizing DOM updates by aggregating state changes.