dynamic routing in react using name code example
Example: react router dynamic routes
<Route path="/:id" render={(props) => (<Component {...props} />)} />
// or
<Route path="/:id" component={Component} />
<Route path="/:id" render={(props) => (<Component {...props} />)} />
// or
<Route path="/:id" component={Component} />