Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

reactjs-file-downloader

salahtoubali30MIT1.0.1

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

react-file-download

readme

reactjs-file-downloader

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

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')