score:1

Accepted answer
const params = new URLSearchParams(this.props.location.search);
const foo = params.get('foo'); // bar

Related Query

More Query from same tag