title: create-react-app shows an error of "You need to enable JavaScript to run this app."
body: <p>I use express for my API. I have a folder named app and another folder named server. app is the client app, using create-react-app as boilerplate, while server is express.js app for the API.</p>
  
  <p>in the app.js file of the server, I wrote </p>
  
  <pre><code>app.get("*", function (req, res) {
      res.sendFile(path.resolve(__dirname, '../app/build/index.html'));
  })
  </code></pre>
  
  <p>But then when I call any API endpoint, I get </p>
  
  <blockquote>
    <p>You need to enable JavaScript to run this app.</p>
  </blockquote>
  
  <p>in the response. I'm confused; what's wrong?</p>