This project supports two kinds of APIs
A custom hook that returns you the pagination data which can then be used to create a customized component
A React component that renders the Pagination component and supports previous and next arrow buttons
Clone this repo to your desktop and run npm install
to install all the dependencies. Note: I like to use the Firefox Development Edition as my default browser. If you need, change the webpack.config.js file to use your preferred browser.
Once the dependencies are installed, you can run npm run dev
to start the application. You will then be able to access it at local-ip:3000 (e.g., http://192.168.0.112:3000).
The original project can be found here: freeCodeCamp.