title: Button in Prime React Table not working
body: <p>I'm using prime react to create a table, the last column of the table is for the actions that can be performed on the table, however I'm following the docs, but the onClick event is not working on the buttons. When I click on the search button I get the error: "UserList.js:19 Uncaught TypeError: _this2.selectUser is not a function"</p>
  
  <p>Any clues please?</p>
  
  <p>The code:</p>
  
  <pre><code>actionTemplate(rowData, column) {
      console.log('column', column);
      console.log('rowData', rowData);
      return (&lt;div&gt;
        &lt;Button
          type="button" icon="fa-search"
          className="ui-button-success" onClick={() =&gt; this.selectUser(1)}
        /&gt;
        &lt;Button
          type="button" icon="fa-edit"
          className="ui-button-warning"
        /&gt;
      &lt;/div&gt;);
    }
  
    selectUser(userId) {
      console.log('selectUser');
      userId = 1;
      this.props.actions.fetchUser(userId);
    }
  
  
      renderTable() {
          const paginatorLeft = &lt;Button icon="fa-refresh" /&gt;;
              /* const users = [
                      { name: '1', email: '1981', updateDate: '', creationDate: '05/03/2016' },
                      { name: '2', email: '1982', updateDate: '', creationDate: '04/02/2017' },
              ]; */
          const { users } = this.props;
          return (
            &lt;DataTable
              value={users} paginator paginatorLeft={paginatorLeft}
              rows={10} rowsPerPageOptions={[5, 10, 20]}
            &gt;
              &lt;Column field="name" header="Name" filter style={{ textAlign: 'center', width: '6em' }} /&gt;
              &lt;Column field="email" header="Email" filter style={{ textAlign: 'center', width: '6em' }} /&gt;
              &lt;Column field="lastUpdate" header="Last update" style={{ textAlign: 'center', width: '6em' }} /&gt;
              &lt;Column field="creationDate" header="Creation Date" style={{ textAlign: 'center', width: '6em' }} /&gt;
              &lt;Column body={this.actionTemplate} header="Actions" style={{ textAlign: 'center', width: '6em' }} /&gt;
            &lt;/DataTable&gt;
          );
        }
  </code></pre>