Answers for "Pass object to query on Router.push NextJs"

0

Pass object to query on Router.push NextJs

import Router, { withRouter } from 'next/router'

performSearch = (event) => {
    event.preventDefault();
    Router.push({ pathname: '/results', state: { pattern: this.state.searchText } });
};
Posted by: Guest on July-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language