Created
December 7, 2023 16:53
-
-
Save cihanyakar/6ceb1f7be259284b2fb162c8416f0bc6 to your computer and use it in GitHub Desktop.
App.Js
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 './App.css'; | |
import {BrowserRouter, Route, Routes} from "react-router-dom"; | |
import {MainPage} from "./pages/mainPage"; | |
import {BookDetailsPage} from "./pages/bookDetailsPage"; | |
import {AddBookPage} from "./pages/addBookPage"; | |
function App() { | |
return ( | |
<BrowserRouter> | |
<Routes> | |
<Route path="/" element={<MainPage/>}/> | |
<Route path="/details/:bookId" element={<BookDetailsPage/>}/> | |
<Route path="/addBook" element={<AddBookPage/>}/> | |
</Routes> | |
</BrowserRouter> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment