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

Getting started:

Install:

npm install react-paginate

To load the component:

var ReactPaginate = require("react-paginate");

To run tests:

npm test

To run the example:

Get the component:

git clone git@github.com:AdeleD/react-paginate.git

Install:

cd react-paginate

make install

Start the server:

make serve

See the result:

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

Using it into your own project:

To know how to use react-paginate into your own projet, you can read the code of the example into the folder : sample/sample.jsx. You will understand how to make react-paginate work with a list of objects.