title: How to let the user download data (CSV) in React?
body: <p>I'm using React to create a PWA (meaning it should ideally be usable on mobile and in the browser).
  I have a button in my drawer (burger menu) that should let the viewer download a CSV file.</p>
  
  <pre><code>import ListItem from '@material-ui/core/ListItem';
  import ListItemIcon from '@material-ui/core/ListItemIcon';
  import ListItemText from '@material-ui/core/ListItemText';
  // ... 
  
  &lt;ListItem
    button
    onClick={handleExport}
    className="drawer-export-contacts-button"
  &gt;
    &lt;ListItemIcon&gt;
      &lt;ShareIcon /&gt;
    &lt;/ListItemIcon&gt;
    &lt;ListItemText primary={strings.exportContacts} /&gt;
  &lt;/ListItem&gt;
  </code></pre>
  
  <p>I have a function that prepares the CSV data as a <code>Blob</code> but I can't figure out how to trigger the download.</p>
  
  <pre><code>function handleExport() {
    const csv = convertContactsToCSV(contacts);
    const csvData = new Blob([csv], { type: 'text/csv;charset=utf-8;' });
    // ...
  }
  </code></pre>
  
  <p>How can you let the user download data?</p>