<p dir="auto">In the jsfiddle <a href="http://jsfiddle.net/69z2wepo/3536/" rel="nofollow">http://jsfiddle.net/69z2wepo/3536/</a><br>
there is a <code class="notranslate">setState</code> in <code class="notranslate">componentWillMount</code> and this <code class="notranslate">setState</code> should call <code class="notranslate">this.loadData</code> since <code class="notranslate">this.loadData</code> is passed as callback to <code class="notranslate">setState</code>. But <code class="notranslate">loadData</code> is never called. See console logs. It prints only "componentWillMount called"</p>
<p dir="auto">Calling <code class="notranslate">setState</code> in <code class="notranslate">componentWillMount</code> doesn't behave as I would expect. <a href="http://jsfiddle.net/kb3gN/3194/" rel="nofollow">Here</a>'s a fiddle demonstrating. In short, the callback is invoked before the state has been updated.</p>