Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. handleClick = () => {
  2. const queryObj = {};
  3. if (this.state.activePage) {
  4. queryObj.page = this.state.activePage;
  5. }
  6. console.log(queryObj);
  7. this.context.router.push(`/issueSearch?${stringify(queryObj)}`);
  8. };
  9.  
  10. handlePageSelect = (page) => {
  11. console.log(page);
  12. this.setState({ activePage: page });
  13. this.handleClick();
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement