title: Can't access React app from localhost (MAMP)
body: <p>I create a React app, this is my <code>route</code> :</p>
  
  <pre><code>import React from 'react';
  import { BrowserRouter, Route, Switch } from 'react-router-dom';
  import BonusScreen from './BonusScreen';
  import HistoryBonus from './HistoryBonus';
  
  // store all the routes
  export default () =&gt; (
  &lt;BrowserRouter basename={"/api"}&gt;
      &lt;Switch&gt;
          &lt;Route path="/bonus/:id" exact component={BonusScreen}/&gt;
          &lt;Route path="/historyBonus" exact component={HistoryBonus}/&gt;
      &lt;/Switch&gt;
  &lt;/BrowserRouter&gt;
  );
  </code></pre>
  
  <p>then I run <code>npm run build</code>, after that I moved the build files into my <code>htdocs</code>
  <br>I tried to access it in my browser like this :
  
  
  <blockquote>
    <p><a href="http://localhost:8888/api/bonus/NGO628567652201" rel="nofollow noreferrer">http://localhost:8888/api/bonus/NGO628567652201</a></p>
  </blockquote>
  
  <p>but it always return </p>
  
  <blockquote>
    <p>Not Found
    The requested URL /api/bonus/NGO628567652201 was not found on this server.</p>
  </blockquote>
  
  <p>How can I fix this ?</p>