react access query code example Example: get query params react Click to copynew URLSearchParams(this.props.location.search).get("your_query_param_key")