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

우지원's avatar
우지원 committed
14
15

ReactDOM.render(
우지원's avatar
ul    
우지원 committed
16
17
18
19
20
21
22
23
24
25
  <Router>
    <Switch>
      <Route exact path="/" component={LogInPage} />
      <Route path="/signuppage" component={SignUpPage} />
      <Route path="/profilepage" component={ProfilePage} />
      <Route path="/hello" component={Hello} />
      <Route path="/homepage" component={HomePage} />
      <Redirect path='/hello' to='/hello' />
    </Switch>
  </Router>,
우지원's avatar
우지원 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();