SyntaxFix
Write A Post
Hire A Developer
Questions
Use the component:
<Route exact path="/details/:id" component={DetailsPage} />
And you should be able to access the id using:
id
this.props.match.params.id
Inside the DetailsPage component
DetailsPage