title: Get data to export csv file using react-csv
body: <p>I am trying react-csv.
  <a href="https://www.npmjs.com/package/react-csv" rel="nofollow noreferrer">https://www.npmjs.com/package/react-csv</a></p>
  
  <p>This is data:</p>
  
  <pre><code>users = [
  {firtstname: 'Ahmed', lastname: 'Tomi' , email: 'ah@smthing.co.com'},
  {firtstname: 'Raed', lastname: 'Labes' , email: 'rl@smthing.co.com'},
  {firstname: 'Yezzi', lastname: 'Min l3b', email: 'ymin@cocococo.com'}
  ];
  </code></pre>
  
  <p>Data for react-csv:</p>
  
  <pre><code>&lt;CSVLink data={this.props.users} &gt;Download me&lt;/CSVLink&gt;
  </code></pre>
  
  <p>Then, how do I get only lastname and email for csv.
  I try to do like this but something went wrong.</p>
  
  <pre><code>handleExport = () =&gt; {
  this.state.exportData = this.props.users.map((user, index) =&gt; (
  user.lastname + user.email
  ));
  }
  </code></pre>
  
  <p>Thanks.</p>