JSFiddle - React, Tailwind, and code Playground

by DrPaulBrewer

HTML

<script src="https://cdn.rawgit.com/DrPaulBrewer/html5csv/7f39da16/html5csv.js"></script>
<pre>
you need to have run 
Example 1 from
http://jsfiddle.net/DrPaulBrewer/zHN7g/ 
or you will get an alert instead of a download
</pre>

JavaScript

//
//
// Running this will prompt you to download 
// HelloWorld.csv from data stored in the browser
// from example 1.  You did do example 1 ?
//

CSV.begin("local/helloWorld").
    download("HelloWorld.csv").
    go(function(e,D){
        if (e) 
            alert("Run example 1 first! error:"+e);
});