score:1

Accepted answer
<Switch>
  <Route exact path="/"><Home/></Route>
  <Route exact path="/accounts/login"><Login/></Route>
  <Route exact path="/accounts/profile"><Profile/></Route>
</Switch>

Related Query

More Query from same tag