title: Add URL rewriting to React NPM project
body: <p>I currently have a static website running on an nginx server. I am moving this over to React and so need to get my website working as an NPM project.</p>
  <p>Currently all the html pages work without having the .html file extension in the URL. For example <a href="http://www.xyz.com/login" rel="nofollow noreferrer">www.xyz.com/login</a> is equivalent to <a href="http://www.xyz.com/login.html" rel="nofollow noreferrer">www.xyz.com/login.html</a> (but looks cleaner in the browser).</p>
  <p>How do I get this to behave in the same way on an NPM based web project?</p>
  <p>Working perfectly on nginx using the following line in nginx.conf file:</p>
  <p><code>location / {      try_files $uri $uri/ /$uri.html /index.html;   }</code></p>
  <p>What is the npm equivalent?</p>