wwwaiser / react-js-pagination

http://vayser.github.io/react-js-pagination
Creative Commons Zero v1.0 Universal
353 stars 95 forks source link

How to know when prev button is pressing and when next button is pressing? #59

Closed sutriptaroy closed 6 years ago

sutriptaroy commented 6 years ago

I need to increase or decrease the page no according to prev or next. so it is needed to idetify which button is pressing. please help me.

sutriptaroy commented 6 years ago

_handlePageChange(pageNumber) { console.log(active page is ${pageNumber}); this.setState({activePage: pageNumber}); }

the pageNumber argument is helping with this issue. thanks for this library. Helped a lot.

wwwaiser commented 6 years ago

you are welcome