index.js 1.05 KB
Newer Older
JeongYeonwoo's avatar
JeongYeonwoo committed
1
2
3
4
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import './index.css';
5
6
import { BrowserRouter as Router, Route, Redirect, Switch, BrowserRouter } from 'react-router-dom';
import App from './App';
JeongYeonwoo's avatar
JeongYeonwoo committed
7
8
import reportWebVitals from './reportWebVitals';
import ProfilePage from './Pages/ProfilePage';
9
10
import Hello from './Hello'
import HomePage from './Pages/HomePage'
JeongYeonwoo's avatar
JeongYeonwoo committed
11
12

ReactDOM.render(
13
14
15
16
17
18
19
20
21
22
23
24
25
  <Router>
    <Switch>
      <Route exact path="/" component={App} />
      <Route path="/hello" component={Hello} />
      <Route path="/homepage" component={HomePage} />
      <Route path="/profilepage" component={ProfilePage} />
      <Redirect path='/hello' to='/hello'/>
    </Switch>
  </Router>,

  // <React.StrictMode>
  //   <App />
  // </React.StrictMode>,
JeongYeonwoo's avatar
JeongYeonwoo committed
26
27
28
29
30
31
32
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();