Answers for "react router path array"

0

react router path array

<BrowserRouter>
  <Switch>
    <Route path={["/somewhere/:something","/somewhere2/:something"]} component={component2} />
  </Switch>
</BrowserRouter>
Posted by: Guest on July-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language