1.2.2 • Published 3 years ago
@bazhe/pagination v1.2.2
@bazhe/pagination
Pagination bundle/library that includes multiple pagination packages for react.js and vanilla javascript
Playground/Demo: https://blagoj5.github.io/pagination/#playground
Full documentation: https://blagoj5.github.io/pagination
Getting Started
Prerequisites
You need to have react-dom and react above version 16
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
Installing
npm
npm install @bazhe/pagination
yarn
yarn add @bazhe/pagination
Usage
Import
// React.js:
import { usePagination } from '@bazhe/pagination'; // Custom hook
import { Pagination } from '@bazhe/pagination'; // Pagination wrapper
import { withPagination } from '@bazhe/pagination'; // HOC for pagination
// React.js | Vanilla JavaScript:
import { Paginator, generatePaginator } from '@bazhe/paginator'; // Utilities for pagination
Initialization and API
Read the documentation for each package:
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Blagoj Petrov
Security
This project doesn’t have any security concerns.
License
This project is licensed under the MIT License - see the LICENSE.md file for details