Obtenha o valor da pesquisa do Reacr Route1
const query = new URLSearchParams(this.props.location.search);
Aggressive Anaconda
const query = new URLSearchParams(this.props.location.search);