DEV Community

Discussion on: Warped Re-rendering | React performance optimization

Collapse
 
aftabnack profile image
Aftab Khan

Agreed Mark!

I am suggesting that apart from those optimizations, we can isolate the state & re-renders to the sub-tree where it is used. And if required, we can set it from anywhere in our code.

I am trying to establish that we shouldn't be lifting the state up only because we want to update the state from another place!