I\'m using react and react-router for my application on the client side. I can\'t seem to figure out how to get the following query parameters from a url like:
"react-router-dom": "^5.0.0",
you do not need to add any additional module just in your component that has a url address like this:
http://localhost:3000/#/?authority'
you can try the following simple code:
const search =this.props.location.search;
const params = new URLSearchParams(search);
const authority = params.get('authority'); //