When I pass just one parameter as follows, everything works as intended.
<Switch>
<Route exact path="/" component={SessionViewer} />
<Route path="/:sessionID" render={
(props) => <SessionViewer { ...props }/>
} />
</Switch>
However, when I try to pass multiple (not just one) dynamic URL parameters as props with react-router:
<Switch>
<Route exact path="/" component={SessionViewer} />
<Route path="/:sessionID/:tsFrom/:tsTo" render={
(props) => <SessionViewer { ...props }/>
} />
</Switch>
The page doesn't load and the following error is thrown:
Uncaught SyntaxError: Unexpected token <
Is there a proper way to do this?