Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleClick = () => {
- const queryObj = {};
- if (this.state.activePage) {
- queryObj.page = this.state.activePage;
- }
- console.log(queryObj);
- this.context.router.push(`/issueSearch?${stringify(queryObj)}`);
- };
- handlePageSelect = (page) => {
- console.log(page);
- this.setState({ activePage: page });
- this.handleClick();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement