JSPM

  • Created
  • Published
  • Downloads 504303
  • Score
    100M100P100Q175897F
  • License BSD-2-Clause

A ReactJS component that creates a pagination.

Package Exports

  • react-paginate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-paginate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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:

Pagination sample 2

or

Pagination sample 1

Installation

Install react-paginate with npm:

$ npm install react-paginate

For 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 git@github.com:AdeleD/react-paginate.git
$ cd react-paginate

Install dependencies:

$ make install

Prepare the demo:

$ make sample

Run the server:

$ make serve

Open your browser and go to http://localhost:3000/.

Contribute

  1. Submit an issue
  2. Fork the repository
  3. Create a dedicated branch (never ever work in master)
  4. Fix bugs or implement features
  5. Always write tests

Run tests:

$ make test