-
-
Save parzibyte/b0d6edb3314a3b7f4e623747e3960262 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Nav from "./Nav"; | |
import AgregarVideojuego from "./AgregarVideojuego"; | |
import VerVideojuegos from "./VerVideojuegos"; | |
import EditarVideojuego from "./EditarVideojuego"; | |
import { | |
Switch, | |
Route, | |
} from "react-router-dom"; | |
function App() { | |
return ( | |
<div> | |
<Nav></Nav> | |
<div className="section"> | |
<div className="columns"> | |
<Switch> | |
<Route path="/videojuegos/agregar"> | |
<AgregarVideojuego></AgregarVideojuego> | |
</Route> | |
<Route path="/videojuegos/editar/:id"> | |
<EditarVideojuego></EditarVideojuego> | |
</Route> | |
<Route path="/videojuegos/ver"> | |
<VerVideojuegos></VerVideojuegos> | |
</Route> | |
<Route path="/"> | |
<VerVideojuegos></VerVideojuegos> | |
</Route> | |
</Switch> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment