title: How to write data in a csv file within single-page-application(React JS )?
body: <p>I want to write or overwrite data(or insert row) in a csv file within react-application(create-react-app) . 
  My App.js file for now is - </p>
  
  <pre><code>import React, { Component} from 'react';
  
  const csvData =[
    ['Ahmed', 'Tomi' , 'ah@smthing.co.com'] ,
    ['Raed', 'Labes' , 'rl@smthing.co.com'] ,
    ['Yezzi','Min l3b', 'ymin@cocococo.com']
  ];
  
  export default class App extends Component {
  
      render() {
          return(
              &lt;div&gt;
              &lt;/div&gt;
              );
      }
  
  }
  </code></pre>
  
  <p>Here , I want to insert csvData in a csv file called data.csv within my react-application</p>
  
  <p>my data.csv for now is :</p>
  
  <pre><code>Name,NickName,Email
  Rahul B.,Rah,bbh@smthing.co.com
  Abhinav K.,Abhi,xyzh@smthing.co.com
  Akshay G.,Aksh,abc@smthing.co.com
  </code></pre>
  
  <p>where </p>
  
  <pre><code>Name,NickName,Email
  </code></pre>
  
  <p>are headers of my csv file .</p>
  
  <p>I want my data.csv to look like -</p>
  
  <pre><code>Name,NickName,Email
  Rahul B.,Rah,bbh@smthing.co.com
  Abhinav K.,Abhi,xyzh@smthing.co.com
  Akshay G.,Aksh,abc@smthing.co.com
  Ahmed, Tomi , ah@smthing.co.com
  Raed, Labes , rl@smthing.co.com
  Yezzi,Min l3b,ymin@cocococo.com
  </code></pre>
  
  <p>So how to update data.csv with my App component (React component) .</p>
  
  <p>Thanks in advance .</p>