reactjs-file-downloader
Version:
REACT File Downloader is a simple library you will be able to download file from browser and save data to file as if it was downloaded
14 lines (9 loc) • 476 B
Markdown
is a simple library you will be able to download file from browser and save data to file as if it was downloaded
Usage
Just install, import with
> **import ReactDownLoad from 'reactjs-file-downloader'**
>
- And call ReactDownLoad. The method accepts 3 arguments, URL , methode and file name . Be sure to add the desired extension at the end of the file name.
Example:
ReactDownLoad('test.com/image.jpg','GET','test.jpg')
REACT File Downloader