Quantcast
Channel: ReactJS - Does render get called any time "setState" is called? - Stack Overflow
Viewing all articles
Browse latest Browse all 11

Answer by Singhi John for ReactJS - Does render get called any time "setState" is called?

$
0
0

Not All Components.

the state in component looks like the source of the waterfall of state of the whole APP.

So the change happens from where the setState called. The tree of renders then get called from there. If you've used pure component, the render will be skipped.


Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>