react-pagination-cn

0.2.0 • Public • Published

react-pagination-cn

Pagination React component

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

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
 

Package Sidebar

Install

npm i react-pagination-cn

Weekly Downloads

5

Version

0.2.0

License

none

Last publish

Collaborators

  • xuluxi