I have a route set up:
<Route path="/search/:name" component={foo} />
In a component I am trying to redirect based on the entered name:
<Redirect to="/search" />
I want to pass this.state.name to the Redirect, like /search/name. How?
I have a route set up:
<Route path="/search/:name" component={foo} />
In a component I am trying to redirect based on the entered name:
<Redirect to="/search" />
I want to pass this.state.name to the Redirect, like /search/name. How?