Here's a fully functional usePagination hook, with a demo of rendering buttons and an ellipsis: mui.com/components/pagination/#use...
usePagination
Thatโs great, but youโll need install the โ@muiโ library to use it
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.
yarn add
npm install
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! ๐
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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! ๐