score:0

 import { BrowserRouter, Route, Switch } from 'react-router-dom';

 <Provider store={createStoreWithMiddleware(reducers)}>
    <BrowserRouter>
      <div>
        <Switch>
            <Route path="/api/:id" component={ComponentOne} />
            <Route path="/" component={Home} />
        </Switch>
      </div>
    </BrowserRouter>
  </Provider>

score:0

<Router history={customHistory}>
<div>
    <Link to={'/.../' + linkName1}>
        {itemName1}
    </Link>
    <Link to={'/.../' + linkName2}>
        {itemName2}
    </Link>
</div>

Related Query

More Query from same tag