I’ve made a real simple “hook + display component” library that you can easily implement whenever you want pagination. It’s easily configurable, customisable and also very lightweight at only 20.8kb.
To install the library, run npm i @impedans/usepagination
For documentation, see @impedans/usepagination on NPM