title: Why is the download button using anchor tag in react js not working?
body: <p>hello i want to create a download button in react js, so that user can download a pdf file by clicking that button.
  i used the anchor tag with download attribute but it is not working. when i click the download button, it says &quot;failed no file&quot; in the small pop up window.</p>
  <pre><code>&lt;a href=&quot;./test.pdf&quot; download&gt; Download &lt;/a&gt;
  </code></pre>
  <p>The pdf file is in the src folder.</p>