“Switch React Router” Respostas de código

Switch React Router

import { Redirect, Route, Switch } from "react-router";

let routes = (
  <Switch>
    <Route exact path="/">
      <Home />
    </Route>

    <Route path="/users">
      <Users />
    </Route>
    <Redirect from="/accounts" to="/users" />

    <Route>
      <NoMatch />
    </Route>
  </Switch>
);
Jahongir

Switch React Router

npm add react-router-dom
Different Donkey

Respostas semelhantes a “Switch React Router”

Perguntas semelhantes a “Switch React Router”

Mais respostas relacionadas para “Switch React Router” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código