ReactJS Pagination Tutorial using React Paginate
HTML-код
- Опубликовано: 11 май 2022
- In this video I'll show you how you can create a pagination in ReactJS using a library called React-Paginate. We will also learn how to style the pagination that we will create.
-----------------------------------------------------------------------------------------------------------
React-paginate: www.npmjs.com/package/react-p...
-----------------------------------------------------------------------------------------------------------
Please LIKE and SUBSCRIBE for more content and supporting!
Thanks!! I was stuck in between while doing pagination. Your video helped a lot.
really thanks a lot, i was stuck on a project, unable to add the pagination feature. This video made it look like a piece of cake. earlier i was doing it in the backend, this React Library is really helpfull
Thanks brother, you are a life savior.
So usefull! Thank you!
This is very helpful thanks a lot
Thanks , you saved my day
Thank you very much
very useful!
thanks brother for this, you just made my day 🙃🙃👍
Thanks!! Its was helpful 😁
wow.. thank you❤, I just saved the video for the future.
Lovely, it was very helpful
Thanks a lot, brother!
amazing stuff .. thank you
best video ever thank you very much
Thanks you very much for this video,Helpfull
thank you , this was very very usefull
Thanks my G you the best
Yes! Exactly what I want :3
So good!
Thank you Bro 👍
Very nice tutor videos but does it work well with firestore ??
wow.... Thanks
Thanks for this video. 😍
Thanks! Great!
hi, is possible inver the list? first item show is the item final of the list
Thx alot !!!
Hi! Very goog tutorial, but i have error... TypeError: data.slice is not a function... this error there -> setCurrentitems(data.slice(itemOffset, endOffset));. I use other api.
thank you so much
I'm getting a bug if I carry on your exact step, and later refresh my page, the currentItems reset to null
Awesome video , ThankYou.
in this how do we get the current page value
BEEEEEEESSSTTTT 🤩
If my items do not come from any api, i.e. the user is the one who creates those items (notes through a button), how can I do it?
The pagination seems to work but it still shows all the items on screen when I have set 6 items per page. Nice video btw ^^
It seems that you haven't changed the items that you're mapping, don't forget to currentItems.map... this will help you render 6 items or any number per page. Hope this help.
actually i am working on project and i get refrence of this video which is quite helpful but as i need i want the current page value and i have to pass that value in axios post request body
If by current page value you mean the current page number then for that you can create a state and update it when user click on a page, you can update current page number inside handlePageClick there current page number will be "event.selected + 1".
Cant show breaklabels and pageRage on next js, why?
bro this is compatible with styled-components?
Yes it is
thx
Can we do pagination only use css??
You have to use javascript for the functionality.
Please check the navbar video comments
you didn't explain const newOffset = (event.selected * itemsPerPage) % items.length; which I think is vital.......
Can you provide source code?
Not working
👹
Copy cat 🐱 😂😂😂