Descargar imagen con función (en react)
import { saveAs } from 'file-saver'
const Index = () => {
const downloadImage = () => {
saveAs('image_url', 'image.jpg') // Put your image url here.
}
return <Button onClick={downloadImage}>Download!</Button>
}
Snigdha Pulim