title: Why we use async before function in react
body: <p>Sometimes we use async before the function. I want to know why and what is the proper use of async.</p>
  
  <pre><code>async remove(id) {
      axios.delete('http://localhost:9022/users/delete/'+id)
        .then(res =&gt; {
          let updatedUsers = [...this.state.users].filter(i =&gt; i.id !== id);
          this.setState({users: updatedUsers});
        });
    }
  </code></pre>
  
  <p>&amp; what is the meaning of this</p>
  
  <pre><code>Users.propTypes = {
    classes: PropTypes.object.isRequired,
  };
  </code></pre>