@thetaone/react-pagination
v0.1.4
Published
A Simple react-paginator in [react.js](https://reactjs.org/)
Downloads
6
Readme
react-paginator
A Simple react-paginator in react.js
Usage
App.js
import React, { Component } from 'react'
import Pagination from './Pagination'
class App extends Component {
constructor(props) {
super(props);
this.state = {
}
this._onPagination = this._onPagination.bind(this)
}
_onPagination(pageNo) {
console.log("pageNo=", pageNo)
}
render() {
return (
<div className="Page">
<Pagination selectedPage={1} count={7} totalPages={15} onPagination={this._onPagination} />
</div>
)
}
}
export default App;