App.tsx 777 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 CreateSurveyFormPage from "./Pages/CreateSurveyFormPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
7
import { BrowserRouter, Route, Routes } from "react-router-dom";
Yoon, Daeki's avatar
Yoon, Daeki committed
8
9
10
11
import "tailwindcss/tailwind.css";

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