App.tsx 743 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
import React from "react";
백승민's avatar
theme1    
백승민 committed
2
import { BrowserRouter, Route, Routes, Link, Outlet} from "react-router-dom";
Yoon, Daeki's avatar
Yoon, Daeki committed
3
import "tailwindcss/tailwind.css";
백승민's avatar
theme1    
백승민 committed
4
5
6
7
8
9
import Header from "./pages/header";
import Body from "./pages/body";
import Board from "./pages/board";
import Login from "./pages/login";
import Citylist from "./pages/citylist";
import Theme from "./pages/theme";
Yoon, Daeki's avatar
Yoon, Daeki committed
10
11
12

export const App = () => {
  return (
백승민's avatar
theme1    
백승민 committed
13
14
15
16
17
18
19
20
21
22
    <BrowserRouter>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/signup" element={<signup />} />
        <Route path="/" element={<Header />}>
          <Route index element={<Body />} />
          <Route path="/board" element={<Board />} />
        </Route>
      </Routes>
    </BrowserRouter>
Yoon, Daeki's avatar
Yoon, Daeki committed
23
24
  );
};