Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. getNextOffset() {
  2. return this.state.offset+this.state.loadNumber;
  3. }
  4.  
  5. handleMoreClick(event) {
  6. const newOffset = this.getNextOffset();
  7. this.setState({offset: newOffset}, () => {
  8. console.log("Offset: " + this.state.offset)
  9. this.getMorePokemon();
  10. });
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement