history.location.search react code example
Example 1: get query params react
new URLSearchParams(this.props.location.search).get("your_query_param_key")
Example 2: react history with search
this.props.history.push({
pathname: '/template',
search: '?query=abc',
state: { detail: response.data }
})