Obtenga el valor de búsqueda de React Route1
const query = new URLSearchParams(this.props.location.search);
Aggressive Anaconda
const query = new URLSearchParams(this.props.location.search);