In the latest filesaver documentation, an example is given for how to use filesaver.js in conjunction with blobbuilder.js:
var bb = new BlobBuilder(); bb.app
It works in my react project:
import FileSaver from 'file-saver'; // ... onTestSaveFile() { var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"}); FileSaver.saveAs(blob, "hello world.txt"); }