A snippet for creating form with pagination control without a library, using code from this article
I added a function for go to the first page and last page, also I create the UI using Chakra UI library
Clone the repo
git clone https://github.com/technowizard/custom-pagination.git
cd custom-pagination
Install packages and dependencies
yarn // or yarn install
yarn dev