title: Download blob response from an API as excel in react js
body: <p>I have a scenario where the backend api(SPRING BOOT) is returning response as an excel file and i have to download it.
  I have been trying to save the file using File saver library but could not reach the solution.
  please help me on this</p>
  <pre><code> const blob = new Blob([response.data], {type:'application/vnd.openxmlformats- 
   officedocument.spreadsheetml.sheet'})
   console.log(blob)
   [![this is the response i am getting from api][1]][1]FileSaver.saveAs(blob, &quot;tickets.xlsx&quot;)
  </code></pre>