title: React .map function not working after Django backend GET with axios
body: <p>I am trying to make a simple React frontend while using Django Rest Framework as a backend. When I make the call to Django and then try to use the .map function to display the data, I get an &quot;Uncaught (in promise) TypeError: this.state.users.map is not a function&quot;. I am a React noob so it is definitely something I am doing.</p>
  <pre><code>import React from 'react';
  import axios from 'axios';
  
  class App extends React.Component {
      state = {
        users: []
      }
    
    
    componentDidMount() {
      axios.get('http://127.0.0.1:8000/api/users/')
      .then(res =&gt; {
        const users = res.data;
        this.setState({ users });
      })
    }
  
    render() {
      return (
        &lt;ul&gt;
          { this.state.users.map(user =&gt; &lt;li&gt;{user.username}&lt;/li&gt;)}
        &lt;/ul&gt;
      )
    }
  }
  
  export default App;
  </code></pre>