index.js 900 Bytes
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
// import Login from './Pages/Login';
// import Home from './Pages/Home';
import App from './App'

Kim, Subin's avatar
Kim, Subin committed
12
ReactDOM.render(
Kim, Subin's avatar
ㅁㅁ    
Kim, Subin committed
13
  <App />,
Kim, Subin's avatar
Kim, Subin committed
14
15
16
  document.getElementById('root')
);

Kim, Subin's avatar
ㅁㅁ    
Kim, Subin committed
17
18
19
20
21
22
23
24
25
26
27

// ReactDOM.render(
//   <Router>
//       <Switch>
//         <Route exact path="/" component={Login} />
//         <Route path="/home" component={Home} />
//       </Switch>
//     </Router>,
//     document.getElementById('root')
//   );

Kim, Subin's avatar
Kim, Subin committed
28
29
30
// 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
31
serviceWorker.unregister();