-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot-cmp.jsx
More file actions
24 lines (20 loc) · 762 Bytes
/
Copy pathroot-cmp.jsx
File metadata and controls
24 lines (20 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const { Route, Routes } = ReactRouterDOM
const Router = ReactRouterDOM.HashRouter
import { AppHeader } from "./cmps/app-header.jsx"
import { About } from "./views/about.jsx"
import { Home } from "./views/home.jsx"
import { MailIndex } from "./apps/mail/views/mail-index.jsx"
import { NoteIndex } from "./apps/note/views/note-index.jsx"
export function App() {
return <Router>
<section className="app">
<AppHeader />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/mail" element={<MailIndex />} />
<Route path="/note" element={<NoteIndex />} />
</Routes>
</section>
</Router>
}