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

Kim, Subin's avatar
Kim, Subin 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';
Kim, Subin's avatar
ㅁㅁ    
Kim, Subin committed
14

Kim, Subin's avatar
Kim, Subin committed
15
ReactDOM.render(
Kim, Subin's avatar
Kim, Subin committed
16
17
18
19
20
21
22
23
24
25
<Router>
    <Switch>
      <Route exact path="/" component={Login} />
      <Route path="/home" component={Home} />
      <Route path="/signup" component={Signup} />
      <Route path="/apply" component={Apply} />
      <Route path="/check" component={Check} />
      <Route path="/notice" component={Notice} />
    </Switch>
  </Router>,
Kim, Subin's avatar
Kim, Subin committed
26
27
28
29
30
31
  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
Kim, Subin's avatar
Kim, Subin committed
32
serviceWorker.unregister();