Adding routing and stub about page
This commit is contained in:
parent
61b1b3372b
commit
c78c61ac49
11 changed files with 3331 additions and 3183 deletions
|
|
@ -1,10 +1,15 @@
|
|||
import './App.css';
|
||||
import "/src/App.css";
|
||||
import { About } from "./pages/about";
|
||||
import { Root } from "./pages/root";
|
||||
import { BrowserRouter, Route, Routes } from "react-router";
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<>
|
||||
<h1>Parcel React App</h1>
|
||||
<p>Edit <code>src/App.tsx</code> to get started!</p>
|
||||
</>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<Root />} />
|
||||
<Route path="/about" element={<About />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue