Skip to content

akx/use-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

use-pagination

Super simple TypeScript native pagination hook for React.

Inspired by https://github.com/mariosant/react-pagination-hook – cheers!

Usage

Put an array in, get a paginated array and an API out.

const {
nextPage,
previousPage,
firstPage,
lastPage,
paginated: paginatedWines,
page,
totalPages,
} = usePagination(orderedWines, 50);

About

Super simple TypeScript native pagination hook for React.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published