Skip to content

Instantly share code, notes, and snippets.

@dharavp
Last active November 27, 2018 11:30
Show Gist options
  • Save dharavp/90947d470e6a532bcb81fbcdcf7a594c to your computer and use it in GitHub Desktop.
Save dharavp/90947d470e6a532bcb81fbcdcf7a594c to your computer and use it in GitHub Desktop.
handleLoadMore = () => {
if (!this.state.loading) {
this.page = this.page + 1; // increase page by 1
this.fetchUser(this.page); // method for API call
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment