title: How to update data after fetch?
body: <p>I'm fetching data on componentDidMount in fetchData method. After that I'm trying to delete data with the method. I was trying to update date immediately in deleteUser method, but it doesn't work. How can I update this data after fetch with delete method?</p>
  
  <pre><code>fetchData = () =&gt; {
      let url = `https://contact-browser.herokuapp.com/contacts`;
      fetch(url, {method: 'get'}).then(resp =&gt; resp.json()).then((data) =&gt;
          this.setState({
              data: Object.entries(data).map(([key,value])=&gt;({key:Number(key),value}))
          })
      );
  };
  
  componentDidMount() {
      this.fetchData();
  }
  
  deleteUser = (id) =&gt; {
      let url = `https://contact-browser.herokuapp.com/contact/${id}`;
      fetch(url, {method: 'delete'}).then(resp =&gt; console.log(resp));
      this.fetchData();
  };
  </code></pre>