I create csv file download using CSVLink but not save to specific directory. Someone can help me how to give directory path ? (eg → C:\Users\project\csv)
import {CSVLink, CSVDownload} from 'react-csv';
const csvData =[
['firstname', 'lastname', 'email'] ,
['Ahmed', 'Tomi' , '[email protected]'] ,
['Raed', 'Labes' , '[email protected]'] ,
['Yezzi','Min l3b', '[email protected]']
];
<CSVLink data={csvData} filename={"test.csv"}>Download me</CSVLink>
'''