title: CSV parse to table
body: <p>I want to display data from local csv with PapaParse.
  When I'm trying to do this code I only see array in <code>console.log()</code>.</p>
  
  <pre><code>    renderRows = () =&gt; {
          const myData = require('./data.txt');
          papaparse.parse(myData, {
            download: true,
            delimiter: '\t',
            complete: function (results) {
              console.log(results);
              const rows = results.data.map((result, index) =&gt; (
                &lt;tr key={index}&gt;
                  &lt;td&gt;{result}&lt;/td&gt;
                &lt;/tr&gt;))
              return (rows);
            }
          });
        }
        render() {
          return (
            &lt;div&gt;
              This is table
              &lt;table&gt;
                  {this.renderRows()}
              &lt;/table&gt;
            &lt;/div&gt;
          ); }
  }
  </code></pre>