'How to pagination data to optional parameters
I'm Using react-bootstrap-table-next pagination module, In that I am using sizeperpage How do I pass sizeperpage data to the params. code excuted:
<BootstrapTable
keyField="userId"
data={TableData}
pagination={paginationFactory({ sizePerPage: 10 })}
/>
)}
const searchButton = () => {
let params = {
userName
};
console.log(params);
getTableData(params).then((data) => {
console.log(data.body);
setTableData(data.body);
});
};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
