This package provides a number of Pagination components that you can use to split huge data sets into smaller data chunks
this hook provides the essential logic needed in managing the state of any pagination use-case.
yarn add @onaio/pagination
UsePagination makes use of the following props
Here is a code sandbox showing how this hook could be used to create a bootstrap-powered pagination component
PS: One can override the above exposed variables via the initial state or using their own custom reducer. due to this dynamic nature the pagination state is not guaranteed to always be as shown above.