title: proxy not working for react and node
body: <p>I'm having issues with the proxy I set up. </p>
  
  <p>This is my root package.json file:</p>
  
  <pre><code>"scripts": {
      "client": "cd client &amp;&amp; yarn dev-server",
      "server": "nodemon server.js",
      "dev": "concurrently --kill-others-on-fail \"yarn server\" \"yarn client\""
  }
  </code></pre>
  
  <p>My client package.json file:</p>
  
  <pre><code>"scripts": {
      "serve": "live-server public/",
      "build": "webpack",
      "dev-server": "webpack-dev-server"
  },
  "proxy": "http://localhost:5000/"
  </code></pre>
  
  <p>I've set up express on my server side to run on port 5000. Whenever I make a request to the server, ie :</p>
  
  <pre><code>callApi = async () =&gt; {
      const response = await fetch('/api/hello');
      const body = await response.json();
      // ... more stuff
  }
  </code></pre>
  
  <p>The request always goes to </p>
  
  <p><a href="https://i.stack.imgur.com/twlJ6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/twlJ6.png" alt="Picture of header pointing to http://localhost:8080/api/hello"></a></p>
  
  <p>Can someone point out what i have to do to fix this issue so that the request actually goes to port 5000?</p>