DEV Community

Discussion on: React: Creating a Custom Hook for Pagination

Collapse
 
codenamejason profile image
Jaxcoder

One thing I think some users would like to see is how you implemented this in your application. I use pagination code very similar and avoid Redux as well and was curious how you were using the pagination and how big is your data-set you are using with it?

Collapse
 
admantium profile image
Sebastian

Hi Jax, I'm using it for the board game search component and user timeline entries. When searching for a board game, some queries return more than 30 games. With the pagination hook, I neatly divide them into buckets of 10 game to show in a table.

Collapse
 
nodefiend profile image
chowderhead

a code implementation of how you use it would be helpful :D

Thread Thread
 
macoacero profile image
Maco Acero