1.0.4 • Published 4 years ago
react-file-downloader v1.0.4
React File Downloader
A small library that downloads files on React!
Usage
Just install, import with import { downloadFile } from 'react-file-downloader'
and call downloadFile
. The method accepts 2 arguments, URL and file name. Be sure to add the desired extension at the end of the file name.
Example:
downloadFile('test.com/image.jpg', 'test.jpg')