ReactJS - AJAX call in componentWillMount
<p><a href="https://facebook.github.io/react/tips/initial-ajax.html" rel="nofollow">React documentation</a> suggest to fetch initial data in <code>componentDidMount</code> function. For my it is not intuitive because we could do it sooner in <code>componentWillMount</code> (first function from <a href="https://facebook.github.io/react/docs/component-specs.html" rel="nofollow">React component life cycle</a>). In general I think we should start AJAX calls us soon us possible so user doesn't have to wait for them. So why do we have to wait until component is rendered?</p>

<p>My questions are:</p>

<ul>
<li>Are there any problems with using AJAX in <code>componentWillMount</code>?</li>
<li>Are there any benefits of using AJAX in <code>componentDidMount</code>?</li>
</ul>