Skip to content

Instantly share code, notes, and snippets.

@Manntrix
Created November 18, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manntrix/b50c4e4aea04e09f1ade3ccfceecfc90 to your computer and use it in GitHub Desktop.
Save Manntrix/b50c4e4aea04e09f1ade3ccfceecfc90 to your computer and use it in GitHub Desktop.
handlePageClick = (e) => {
const selectedPage = e.selected;
const offset = selectedPage * this.state.perPage;
this.setState({
currentPage: selectedPage,
offset: offset
}, () => {
this.receivedData()
});
};
@Niyampooja
Copy link

/error-typeerror-data-slice-is-not-a-function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment