In React, or JavaScript in general, if I make an HTTP GET request to a REST API route that responds with a file, e.g. a png image, how can I then get the browser to download that file?
axios.get('https:/myapi.com/download/cat.png')
.then((response) => {
console.log(response);
});