0.2.0 • Published 7 years ago

react-pagination-cn v0.2.0

Weekly downloads
23
License
-
Repository
github
Last release
7 years ago

react-pagination-cn

Pagination React component

demo: http://xuluxi.github.io/react-pagination/

npm.io

Configuration

  • totalPage : (number) total page number
  • selectPage : (function) callback function when you select one page,the argument is the page number

Usage

npm: npm install react-pagination The css is in package folder, I haven't pack it in JS, you should add it by youself;

var React = require('react');
var Pagination = require('react-pagination-cn');

React.render(<Pagination 
  totalPage={ 100 }
  selectPage={ changePageFn }
  />, document.body);

```jsx