If you answer yes, we store and analyse information that helps us improve the website. You can change your choice at any time at the bottom of the page. More about what we store and why.

We also store necessary information that cannot be opted out of. This makes the website work and keeps it secure.

Skip to main content

What are you looking for?

Try searching for…

usePagination

A React hook to handle pagination.

Props

In response you get the object:

Use

On Pagination.Button

You loop through pages from the response object, and spread buttonProps on Pagination.Button. Notice that we check typeof on page. This is because ellipses should be an empty li.

Edit this page on github.com (opens in a new tab)