index.js 1.1 KB
Newer Older
Choi Ga Young's avatar
Choi Ga Young committed
1
2
3
import React from 'react';
import ReactDOM from 'react-dom';
import * as serviceWorker from './serviceWorker';
Choi Ga Young's avatar
Choi Ga Young committed
4
import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom';
Choi Ga Young's avatar
Choi Ga Young committed
5
import 'bootstrap';
Choi Ga Young's avatar
Choi Ga Young committed
6
import 'bootstrap/dist/css/bootstrap.css';
Ha YeaJin's avatar
login    
Ha YeaJin committed
7

Ha YeaJin's avatar
pages    
Ha YeaJin committed
8
9
10
11
12
13
import Login from './Pages/LoginPage';
import Home from './Pages/HomePage';
import Signup from './Pages/SignupPage';
import Apply from './Pages/ApplyPage';
import Check from './Pages/CheckPage';
import Notice from './Pages/NoticePage';
Choi Ga Young's avatar
Choi Ga Young committed
14
15

ReactDOM.render(
Choi Ga Young's avatar
Choi Ga Young committed
16
17
18
19
<Router>
    <Switch>
      <Route exact path="/" component={Login} />
      <Route path="/home" component={Home} />
Ha YeaJin's avatar
pages    
Ha YeaJin committed
20
21
22
23
      <Route path="/signup" component={Signup} />
      <Route path="/apply" component={Apply} />
      <Route path="/check" component={Check} />
      <Route path="/notice" component={Notice} />
Choi Ga Young's avatar
Choi Ga Young committed
24
25
    </Switch>
  </Router>,
Choi Ga Young's avatar
Choi Ga Young committed
26
27
28
29
30
31
32
  document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();