I used https://www.npmjs.com/package/react-table lib. have to fetch data for a table by the filters of the column. filter below:
...
filterable: true,
Filter: () => {
return (
<input
...
onChange={e => this.handleSearchInput(e)}
/>
);
}
handleSearchInput method calls request to the server
let params = {
filter_fields: this.state.filter,
page_size: this.state.pageSize, //here should be state of a table
page: this.state.page // e.g. **state.page** and state - should be arguments
};
Actions.getMUsers(params)...
so how should synchronize page and pageSize value from ReactTable component to use it in the request body