Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getNextOffset() {
- return this.state.offset+this.state.loadNumber;
- }
- handleMoreClick(event) {
- const newOffset = this.getNextOffset();
- this.setState({offset: newOffset}, () => {
- console.log("Offset: " + this.state.offset)
- this.getMorePokemon();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement