How do I match an optional path using the Route component in React Router 4?
For example I have an Orders component that I want to render on both /account and /account/orders.
The equivalent would be having two Route components to match both paths.
<Route exact path="/account" component={Orders} />
<Route exact path="/account/orders" component={Orders} />