Hello Shubham !
I have found and used your pagination component in my own React app and it works just fine.
But there is still a little problem and I need your help.
Imagine the use case below :
At the top of the page, I have the "Pagination" component.
Then, my page size is 30, so I have 30 "cards" of my data.
And then, at the bottom of the page, a new time the "Pagination" component.
The problem is : When I use "setCurrentPage" from the prop "onPageChange" in the second pagination component, the new page is opened at the bottom, that is to say at the same level in the page than the previous page.
How could I do to make it open at the top of the page or at any other place with an anchor, for example ? It's not as simple as basic HTML !!
Thanks in advance for the answer you can bring.
Jérôme Fromantin, French front-end junior developer.