Categories
How to make back and forth navigation on pagination?
https://codesandbox.io/s/angry-sea-nuymi?file=/src... Like << 1 2 3 4 5 >>
Answer the question
In order to leave comments, you need to log in
And what's the problem? The pagination component, in which the current page is available and the method for changing it, you already have. It remains to draw two buttons that will call onPageChange with page - 1and page + 1.
page - 1
page + 1
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question