I am using react+redux. I have 100000(example) ImageComponent
inside a parent component let's say, ImageGrid
. Functionality on every ImageComponent
is, user can like, delete and select.
The problem is, when I like, delete or select any single ImageComponent, I update it's state in redux and upon every single state change, it renders the whole 100000 ImageComponent
.
How to avoid this unnecessary re-rendering of those ImageComponent
which has not changed?