title: pagination logic in calculating total of pages
body: <p>I'm using a react component that need me to pass in below prop</p>
  
  <pre><code>&lt;Pager 
        totalPages={10}
        currentPage={1}
  /&gt;
  </code></pre>
  
  <p>I can't figure out the calculation as in the api I have <code>total_items</code>, not <code>totalPages</code>. if I have 50 <code>total_items</code>, how can I produce 5 for the <code>totalPages</code> prop? says my limit is 10.</p>