DEV Community

Discussion on: Pagination in Javascript and React, with a custom usePagination() hook

damiisdandy profile image
damilola jerugba Author

It's functional, I was referring to Typescript you were talking about types. There are many ways to implement pagination, this is just my way, and this will work for any language

Thread Thread
jcubic profile image
Jakub T. Jankiewicz • Edited on

It's functional, I was referring to Typescript you were talking about types.

I don't quite understand what you write this above comment. I just mean that this is not fully implemented pagination, because it's missing fundamental features. So it can't be used in any real projects. You need to implement the thing yourself if you want to have something that is a full pagination. Also this will not work with any language because it's like half of the implementation.

Thread Thread
damiisdandy profile image
damilola jerugba Author • Edited on

Sorry I thought I replied to another comment, could you list out these features, so I improve this React hook

Thread Thread
damiisdandy profile image
damilola jerugba Author

You are also free to make contributions to the repo

Thread Thread
jcubic profile image
Jakub T. Jankiewicz

Added two issues. I may contribute if the issue is not fixed when I will need pagination since I will need something like this in the near future for my application.

Thread Thread
damiisdandy profile image
damilola jerugba Author

👍🏽