Answer the question
In order to leave comments, you need to log in
Why props.match == undefined?
<Switch>
<Route path='/dialogue/:id' render={() => <DialogList />}/>
</Switch>
<Route path="/dialogue/:id" render={() => {console.log(props.match)}}/>
Answer the question
In order to leave comments, you need to log in
You yourself skip props
<Route path='/dialogue/:id' render={() => <DialogList />}/>
<Route path='/dialogue/:id' render={(props) => <DialogList {...props}/>}/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question