title: React pending promise while after fetching from express backend
body: <p>I have a simple node.js express server like so:</p>
  
  <pre><code>const express = require('express');
  const app = express();
  const port = process.env.PORT || 5000;
  
  app.listen(port, () =&gt; console.log(`Listening on port ${port}`));
  
  app.get('/express_backend', (req, res) =&gt; {
    res.send({ express: 'YOUR EXPRESS BACKEND IS CONNECTED TO REACT' });
  });
  </code></pre>
  
  <p>and have the proxy set up in the package.json like so:</p>
  
  <pre><code>"proxy": "http://localhost:5000/"
  </code></pre>
  
  <p>However, in my App.js, I try to fetch the JSON from the server, but it returns me a pending promise (I found this out with a console.log in the .then()).  How could I fix this so that it properly fetches the string in the express JSON object?</p>
  
  <pre><code>class App extends Component {
  
    constructor(){
      super();
      this.state = {data: "asdf"};
    }
  
    componentDidMount() {
      fetch('/express_backend')
        .then(res =&gt; this.setState({data: res.express}));
    }
  </code></pre>
  
  <p>I am running both <code>node server.js</code> and <code>npm start</code> at this time.</p>