react-pagination-component
v1.0.1
Published
react-pagination-component
Downloads
11
Readme
React-pagination
Preview: https://killsanghyuck.github.io/react-pagination/
Install
npm install react-pagination-component
Configuration
totalPage
: (number) total page number
focusPage
: (function) callback the current page number
Usage
var React = require('react');
var ReactDOM = require('react-dom');
var Paginate = require('./react-pagination-component.js');
var demo = document.getElementById('demo');
var p = document.getElementById('page-num');
function changePage(page){
p.innerText = 'focus page : ' + page;
};
ReactDOM.render(
<Paginate totalPage={100} focusPage={changePage} />,
demo
);