This is my function to download zip file autoDownload.current.click() - automatically click on HTML element which download my zip file. But Problem is page used to reload while this process. How i can prevent my page to reload.
const downloadZipFile = () => {
console.log('download');
autoDownload.current.click();
}
I need something like this.
const downloadZipFile = () => {
console.log('download');
autoDownload.current.click((e) => {
e.preventDefalut();
});
}