<Link to={{ pathname: '/template', search: '?query=abc', state: { detail: response.data } }}> My Link </Link>