Looking for a way to add an \"Export to CSV\" button to a react-table which is an npmjs package (https://www.npmjs.com/package/react-table).
I need to add a custom
Take a look at this npm library - https://www.npmjs.com/package/react-csv
For example -
import {CSVLink, CSVDownload} from 'react-csv'; const csvData =[ ['firstname', 'lastname', 'email'] , ['John', 'Doe' , 'john.doe@xyz.com'] , ['Jane', 'Doe' , 'jane.doe@xyz.com'] ]; Download me // or