“React-Router” Respostas de código

React-Router

npm install react-router-dom
Upset Unicorn

ROUTER DE REACTER

react router

import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

  return (
    <>
      <Router>
        <>
          <Routes>
            <>
              <Route
                exact
                path="/"
                element={
                  <>
                    <Dashboard allFaq={allFaq} />
                  </>
                }
              />
              <Route
                exact
                path="/login"
                element={
                  <>
                    <Login />
                  </>
                }
              />
            </>
          </Routes>
        </>
      </Router>
    </>
  );
Abhishek

Respostas semelhantes a “React-Router”

Perguntas semelhantes a “React-Router”

Procure respostas de código populares por idioma

Procurar outros idiomas de código