title: ReactJS- downloading a pdf file "Failed - no file"
body: <p>I have written a React Component to download a pdf file using the achor tag of the file. I'm getting an error <code>Failed- No file</code>.</p>
  
  <pre><code>import React from 'react'
  
  const Links = ()=&gt;
          &lt;div className='github-link'&gt;
               &lt;a href="https://github.com/" rel='noopener noreferrer'  alt="github link"
       target='_blank'&gt;&lt;strong&gt;View my GitHub here!&lt;/strong&gt;&lt;/a&gt;
       &lt;a href="../resume/resume.pdf" download&gt;&lt;strong&gt;Download my Resume!&lt;/strong&gt;&lt;/a&gt;
          &lt;/div&gt;
  
  
  
  export default Links
  
  </code></pre>
  
  <p>I have my resume pdf in my src directory inside a directory called resume. The file I want to download is called resume.pdf</p>
  
  <p>Thanks for any help!</p>