AdeleD / react-paginate

A ReactJS component that creates a pagination
MIT License
2.76k stars 628 forks source link

How change active button to 1 if items array is changed? #449

Closed dimahalaiskiy closed 2 years ago

dimahalaiskiy commented 2 years ago

SOLVED:

Please see the v9 branch for a true controlled version of the lib.

You can test it with:

npm install --save github:AdeleD/react-paginate#v9

There are prop page, so you can change this prop from parent directly when for expample you change list of items.