score:0

Accepted answer

you can pass parameters on query like;

<route path="/second:city" component={second} />

and click from first link can be something like this;

<link to={`/second/${this.state.city}`}>

finally in second component you can get the city value with;

const { city } = this.props.match.params;

for more info: click here


Related Query

More Query from same tag