Quantcast
Channel: Why doesn't React automatically optimize shouldComponentUpdate? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by jabacchetta for Why doesn't React automatically optimize...

I believe they hint at why in the advanced performance section of the documentation. Essentially, equality can't be accurately determined when using mutable data structures.

View Article



Image may be NSFW.
Clik here to view.

Why doesn't React automatically optimize shouldComponentUpdate?

As we konw, if a component's parent has change its state, its all children components will do render vitual dom operation.The use dom diff to render. If you use shouldComponentUpdate function to judge...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images