import Pagination from '..';
import React from 'react';
import ReactDOM from 'react-dom';
import { createBrowserHistory } from 'history';

const history = createBrowserHistory();

function handleChange(page) {
  history.push(page.toString());
}
ReactDOM.render(
  <Pagination defaultCurrent={2} onChange={handleChange} />,
  document.getElementById('pagination-demo-12'),
);
