Check out example codes for "html link to download file". It will help you in understanding the concepts better.

Code Example 1

<a href="path/to/file.ext" download rel="noopener noreferrer" target="_blank">
   Download File
</a>

<!-- Please keep in mind that the dowload attribute is not supported by IE11. This why we need a target="_blank" fallback -->

Code Example 2

<a href="the/name/of/your/file.x" download>

Learn ReactJs, React Native from akashmittal.com