I do realize this might be a bad practice, but I need to redirect a user according to their email in exactly this manner:
/chat?user={emailAddress}
What should the exact path look like so that I could access emailAddress as a prop in chatRenderer ? URL must have name query in it.
<Route
exact
path={`/chat?user=???`}
render={this.chatRenderer}
/>