1

In excel4node I can create a file using write or I can write to buffer as follows:

wb.writeToBuffer().then(function (buffer) {

// Do something with buffer

});

How I can take the buffer and then make React download a file to the Browser ?

Daniel Benedykt
  • 6,496
  • 12
  • 51
  • 73

1 Answers1

3

excel4node did not work with React.

It seems that only works on nodejs server side.

I ended up using https://www.npmjs.com/package/xlsx

Daniel Benedykt
  • 6,496
  • 12
  • 51
  • 73