I have implemented table with pagination using BootstrapTable from react-bootstrap-table and taking data from external API. Every time will receive 10 items. Therefore the pageSize is 10 but I get the totalPages variable from API which is let's say 5. Unfortunately, the table data is each time 10 so there is just one page
https://codesandbox.io/s/zealous-archimedes-tbcy9?file=/src/Tablepagination.js:732-923
for output purpose used sample products instead of external api