index.js 761 Bytes
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';
Choi Ga Young's avatar
Choi Ga Young committed
7
8
import Login from './Pages/Login';
import Home from './Pages/Home';
Choi Ga Young's avatar
Choi Ga Young committed
9
10

ReactDOM.render(
Choi Ga Young's avatar
Choi Ga Young committed
11
12
13
14
15
16
<Router>
    <Switch>
      <Route exact path="/" component={Login} />
      <Route path="/home" component={Home} />
    </Switch>
  </Router>,
Choi Ga Young's avatar
Choi Ga Young committed
17
18
19
20
21
22
23
  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();
Choi Ga Young's avatar
Choi Ga Young committed
24