rc-pagination@1.20.7

pagination ui component for react

/* eslint func-names: 0, no-console: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Pagination from 'rc-pagination';
import 'rc-pagination/assets/index.css';

ReactDOM.render(
<div>
  <Pagination
    showTotal={(total) => `Total ${total} items`}
    total={455}
  />
  <br />
  <Pagination
    showTotal={(total, range) => `${range[0]} - ${range[1]} of ${total} items`}
    total={455}
  />
  <br />
  <Pagination
    showTotal={(total, range) => `${range[0]} - ${range[1]} of ${total} items`}
    total={0}
  />
</div>
, document.getElementById('__react-content'));
Fork me on GitHub