Skip to content Skip to sidebar Skip to footer

What's The Proper Way To Link To A Route With Parameters?

I have these routes set up in app.js: import { BrowserRouter, Route, Switch } from 'react-router-dom';

Solution 1:

In your Link to prop you have to provide the complete order path like

<Link to={`/orders/${order.orderReference}/details1`} >
    <PickingIcon />
</Link> 

Post a Comment for "What's The Proper Way To Link To A Route With Parameters?"