title: react reload data with AJAX
body: <p>I have a series of React components loading data from HTTP service in <code>componentDidMount</code> as explained here <a href="http://facebook.github.io/react/tips/initial-ajax.html" rel="nofollow">http://facebook.github.io/react/tips/initial-ajax.html</a></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
    &lt;script src="http://fb.me/react-0.13.0.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://fb.me/JSXTransformer-0.13.0.js"&gt;&lt;/script&gt;
    &lt;script src="http://code.jquery.com/jquery-1.11.2.min.js"&gt;&lt;/script&gt;
  
    &lt;script type="text/jsx"&gt;
      var RandomGist = React.createClass({
        getInitialState: function() {
          return {
            id: '',
            url: ''
          };
        },
  
        componentDidMount: function() {
          $.get(this.props.source, function(result) {
            var gist = result[Math.round(Math.random() * result.length)];
            this.setState({
              id: gist.id,
              url: gist.html_url
            });
          }.bind(this));
        },
  
        render: function() {
          return (
            &lt;div&gt;
              &lt;a href={this.state.url}&gt;{this.state.id}&lt;/a&gt;
            &lt;/div&gt;
          );
        }
      });
  
      var GistList = React.createClass({
        render: function() {
          return (&lt;div&gt;{[1,2,3].map(function() {
            return &lt;RandomGist source="https://api.github.com/users/octocat/gists" /&gt;;
          })}&lt;/div&gt;);
        }
      });
  
      var RefreshableGistList = React.createClass({
        handleClick: function() {
          console.log("Click!");
        },
  
        render: function() {
          return (
            &lt;div&gt;
              &lt;button onClick={this.handleClick}&gt;Refresh&lt;/button&gt;
              &lt;GistList /&gt;
            &lt;/div&gt;
          );
        }
      });
  
      React.render(
        &lt;RefreshableGistList /&gt;,
        document.body
      );
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>After click on Refresh button I would like to refresh gist from HTTP service. Problem is that <code>setState</code> and <code>forceUpdate</code> will not lead to that because getting data from HTTP service is done in <code>componentDidMount</code> as was explained in original react example.</p>