title: Material UI TablePagination handle with Redux/React
body: <p>I am trying to manage the status of a MaterialUI table page.
  I am currently using the onChangePage property, but this allows me to only navigate by "adding" pages, i.e. in one direction only, so I cannot return to the previous pages.
  My question is as to how to select what kind of event it is depending on which button you click, because if you click either of the two page buttons it only advances to the next page.</p>
  
  <p>This is the table pagination section:</p>
  
  <pre><code>&lt;TablePagination
     component="div"
     count= {this.props.logs.length}
     rowsPerPage={this.props.rowsPerPage}
     page={this.props.page}
     backIconButtonProps={{
       'aria-label': 'Previous Page',
     }}
     nextIconButtonProps={{
       'aria-label': 'Next Page',
     }}
     onChangePage={this.handleChangePage}
  /&gt;
  </code></pre>
  
  <p>And my handleChangePage looks like this:</p>
  
  <pre><code>handleChangePage = (event) =&gt; {
    this.props.dispatch(nextPage(this.props.page))
  }
  </code></pre>
  
  <p>So, how can I tell the difference between advancing or returning to the previous page with the onChangePage functionality of MaterialUI Tables?</p>