Skip to content

xuluxi/react-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

pagination React component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published