React components to build CSV files on the fly basing on Array/literal object of data http://elegance.abdennoor.com/react-csv/
Find a file
abdennour 5d60561f7b 📔age more than 85% 👌
2016-11-25 18:32:24 +03:00
src 🎉 🎉 coverage of core testing reaches 80% 🌹 🍻 2016-11-25 18:21:23 +03:00
test 📔age more than 85% 👌 2016-11-25 18:32:24 +03:00
.babelrc 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00
.gitignore 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00
.npmignore 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00
.travis.yml 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00
index.js 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00
package.json 🎉 🎉 coverage of core testing reaches 80% 🌹 🍻 2016-11-25 18:21:23 +03:00
README.md 🌎 🌍 🌏 initial commit 2016-11-25 15:59:50 +03:00

Overview :

import {CSVLink} from 'react-csv';


const csvData =[
  ['firstname', 'lastname', 'email'] ,
  ['Ahmed', 'Tomi' , 'ah@smthing.co.com'] ,
  ['Raed', 'Labes' , 'rl@smthing.co.com'] ,
  ['Yezzi','Min l3b', 'ymin@cocococo.com']
];
<CSVLink data={csvData} >Download me</CSVLink>