I have a react js app that is receiving the following JSON object from the API. How can I create a CSV file export from the JSON and create a download link for the user using react js?
{
"data": [
{
"location": "232323",
"name": "ZZZZZZZ",
"phoneNumber": "2003223232"
},
{
"location": "23334",
"name": "XYZ",
"phoneNumber": "1234323334"
}
}
I am newbie to the react.js