@alobato/use-pagination

1.0.0 • Public • Published

usePagination

React hook to use pagination

Note: This is using the new React Hooks API

You'll need to install react, react-dom, etc at ^16.8.0 or above

Install

yarn add @alobato/use-pagination

Usage

import useKeyPress from '@alobato/use-pagination'
...
const [paginationProps, currentPageItems] = usePagination(data)

Readme

Keywords

Package Sidebar

Install

npm i @alobato/use-pagination

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

2.36 kB

Total Files

4

Last publish

Collaborators

  • alobato