-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement pagination in this project? #31
Comments
Hi everyone, I'm still trying to do the pagination. Could someone help me with this: This is my main index.js : https://controlc.com/32243536 And this is my index.js (services : https://controlc.com/511f7e29 Should I use useEffect or something like useSWR? I'm stuck for a long time now. I hope someone will see this and kindly guide me ... |
Am I the only one right here who want to implement pagination on this blog? :/ |
Hi, I want to implement pageanation too but yet to figure it out |
I used this : https://www.npmjs.com/package/react-paginate The code i used:
|
You will have to do some css to customize it (use the classnames of the ReactPaginate component) |
Create a component and reuse it for the categorie page aswell |
Infinite Scroll seems like a better option rather than pagination. React Infinite Scroll - I have used this npm package for some of my projects |
Hi everyone,
I started learning Next JS and GraphQL with this project so I'm a beginner. I wanted to implement pagination a few days ago and still to this day, I'm lost.
Did someone manage to achieve that?
The text was updated successfully, but these errors were encountered: