i have a url like this
http://localhost:9001/search_results?r
I'm using querystring to take the value of 'r' like this. (I'm using a react library)
componentDidMount() {
const parsed = queryString.parse(location.search);
console.log("Character",parsed);
}
In my log i get a value like {r: null}
How can i get only the value of 'r' from this?