Hi Everyone, I've noticed most of you guys are requesting for features like the ability for the repo to handle more than 1000 pages, the usePagination() hook can handle β number of pages. But you guys are should understand that this blog post is simply to show the usePagination() hook and has nothing to do with the pagination buttons or styling. Some of you are requesting that I should add the UI functionality of ... in the middle of the pagination buttons for pages that are as large as a 100 pages. This require for the usePagination() hook to also return a component that contains the pagination buttons.
If you'd like me to implement this, please get the github repo to 50 stars and i'll convert this into a full library that tackles these issues and more.
You are also free to collaborate on this repo so we can build it as a library together π
Well, sure, but that's a single command (yarn add or npm install). And since all you import is the hook, that's all that will be included in your bundle.
Hi Everyone, I've noticed most of you guys are requesting for features like the ability for the repo to handle more than 1000 pages, the
usePagination()
hook can handle β number of pages. But you guys are should understand that this blog post is simply to show theusePagination()
hook and has nothing to do with the pagination buttons or styling. Some of you are requesting that I should add the UI functionality of...
in the middle of the pagination buttons for pages that are as large as a 100 pages. This require for theusePagination()
hook to also return a component that contains the pagination buttons.If you'd like me to implement this, please get the github repo to 50 stars and i'll convert this into a full library that tackles these issues and more.
You are also free to collaborate on this repo so we can build it as a library together π
Thank you ππππ
Here's a fully functional
usePagination
hook, with a demo of rendering buttons and an ellipsis: mui.com/components/pagination/#use...Thatβs great, but youβll need install the β@muiβ library to use it
Well, sure, but that's a single command (
yarn add
ornpm install
). And since all you import is the hook, that's all that will be included in your bundle.I'll try that, but I'll still challenge myself and create a npm package, it will be my first open source project
Of course! And perhaps youβll find a more elegant implementation. Itβs a tricky problem to solve! Good luck! π