I have a react router like this:
<Route path={this.props.match.path} component ={CollectionContainer}/>
it works fine: supposing that this.props.match.path value is /home, i go to /home and the router correctly render the component "CollectionContainer" Now I want concatenate this.props.match.path with another string, for example the string "a". I've tried in these ways but the container doesn't appear:
method a:
<Route path={this.props.match.path + 'a'} component ={CollectionContainer}/>
method b:
<Route path={'${this.props.match.path}a'} component ={CollectionContainer}/>
Some can explain me what I'm doing wrong?