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

Answer by boaz levinson for ReactJS - Does render get called any time "setState" is called?

$
0
0

Regardless of the well explained answers here, there may be other reasons why you don't see the change you expect post changing the props or state:

Watch out for any event.preventDefault(); in the code where you want to re-render by a state \ props change, as it will cancel any cancelable event following this statement.


Viewing all articles
Browse latest Browse all 11

Trending Articles



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