reaguj tablicę ścieżki routera

<BrowserRouter>
  <Switch>
    <Route path={["/somewhere/:something","/somewhere2/:something"]} component={component2} />
  </Switch>
</BrowserRouter>
Cruel Camel