Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 1.7 KB

File metadata and controls

7 lines (4 loc) · 1.7 KB

re-render medium #react #performance

by Pawan Kumar @jsartisan

Take the Challenge

We have 3 components: App at the top, which renders Counter, which renders BigCountNumber and a simple Decoration component. Due to how React works, when the state count changes, the Decoration is also re-rendering despite of the fact it is not dependent on the count state since it is not receiving count as prop. How can we avoid re-render of Decoration component?


Back Share your Solutions Check out Solutions