24 lines
700 B
JavaScript
24 lines
700 B
JavaScript
import {Route, Routes, Link} from "react-router-dom";
|
|
import Home from "./Home";
|
|
import NotFound from "./NotFound";
|
|
import List from "./Lists";
|
|
import View from './View';
|
|
import Edit from "./Edit";
|
|
|
|
// import Login from "./Login";
|
|
|
|
|
|
const RouterSwitcher = () => {
|
|
return(
|
|
<Routes>
|
|
{/* <Route path="/*" element={<Login />} /> */}
|
|
<Route path="/home" element={<Home />} />
|
|
<Route path="/lists" element={<List />} />
|
|
<Route path="/view/:id" element={<View />} />
|
|
<Route path="/edit/:id" element={<Edit />} />
|
|
<Route path="/not-found" element={<NotFound />} />
|
|
</Routes>
|
|
);
|
|
};
|
|
|
|
export default RouterSwitcher; |