flâneur — a map of the web's best reading

React re-renders guide: everything, all at once

developerway.com · 2,269 words · saved by 1 readers

React re-renders "cheatsheet". Short descriptions with visual aid and code examples of: what re-renders are, what triggers them, most important re-renders related patterns and antipatterns to remember.

Table of contents What is re-render in React? When talking about React performance, there are two major stages that we need to care about: initial render - happens when a component first appears on the screen re-render - second and any consecutive render of a component that is already on the screen Re-render happens when React needs to update the app with some new data. Usually, this happens as a result of a user interacting with the app or some external data coming through via an asynchronous request or some subscription model. Non-interactive apps that don’t have any asynchronous data update

Explore this link on the map →

related reading