download comma separated file, react

JavaScript
npm install react-csv --save;

Source

Also in JavaScript: