App.tsx 644 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
import React from "react";
2
import RootPage from "./Pages/RootPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
3
import HomePage from "./Pages/HomePage";
Jiwon Yoon's avatar
Jiwon Yoon committed
4
5
import LoginPage from "./Pages/LoginPage";
import SignUpPage from "./Pages/SignUpPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
6
import { BrowserRouter, Route, Routes } from "react-router-dom";
Yoon, Daeki's avatar
Yoon, Daeki committed
7
8
9
10
import "tailwindcss/tailwind.css";

export const App = () => {
  return (
Jiwon Yoon's avatar
Jiwon Yoon committed
11
12
    <BrowserRouter>
      <Routes>
13
14
        <Route path="/" element={<RootPage />}>
          <Route index element={<HomePage/>}/>
Jiwon Yoon's avatar
Jiwon Yoon committed
15
16
          <Route path="login" element={<LoginPage />} />
          <Route path="signup" element={<SignUpPage />} />
Jiwon Yoon's avatar
Jiwon Yoon committed
17
18
19
        </Route>
      </Routes>
    </BrowserRouter>
Yoon, Daeki's avatar
Yoon, Daeki committed
20
21
  );
};