Pobierz obraz z funkcją (na 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