Create a hyperlink that downloads a blob:
<a
href={URL.createObjectURL(new Blob([JSON.stringify("{}", parseDateIntoLocalStorage) || ""], { type: "application/json" }))}
download={"test.json"}
>
test
</a>
2-Click on it
3-The file name will be a random hash name instead of test.json
I expect the browser to use the name inside the "download" property
1.3.7 (15)
17