DEV Community

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

mbrookes profile image
Matt

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.

Thread Thread
damiisdandy profile image
damilola jerugba Author

I'll try that, but I'll still challenge myself and create a npm package, it will be my first open source project

Thread Thread
mbrookes profile image
Matt

Of course! And perhaps you’ll find a more elegant implementation. It’s a tricky problem to solve! Good luck! 👍