title: Use of 'then' in ReactJS
body: <p>For ease in explaining the significance of 'then', could anyone tell me what is happening in this code?</p>
  
  <pre><code>fetchComments().then(response =&gt; {
        this.setState({
          comments: response.comments
        });
      });
  </code></pre>