react.paginate
v0.0.6
Published
(Forked) A ReactJS component that creates a pagination.
Downloads
30
Maintainers
Readme
react-paginate
A ReactJS component to render a pagination.
By installing this component and writing only a little bit of CSS you can obtain this:
or
Installation
Install react-paginate with npm:
$ npm install react-paginateFor CommonJS users:
var ReactPaginate = require('react-paginate');Read the code of sample/sample.jsx. You will quickly understand
how to make react-paginate work with a list of objects.
Sample project (demo)
Clone the repository and move into:
$ git clone [email protected]:AdeleD/react-paginate.git
$ cd react-paginateInstall dependencies:
$ make installPrepare the demo:
$ make sampleRun the server:
$ make serveOpen your browser and go to http://localhost:3000/.
Contribute
- Submit an issue
- Fork the repository
- Create a dedicated branch (never ever work in
master) - Fix bugs or implement features
- Always write tests
Run tests:
$ make test