Получите значение поиска от REC RARTE1
const query = new URLSearchParams(this.props.location.search);
Aggressive Anaconda
const query = new URLSearchParams(this.props.location.search);