index.js 1.17 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
14
import LogInPage from './Pages/LogInPage';
import LoginForm from './Pages/LoginForm';
import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom';
import Hello from './Hello'
import HomePage from './Pages/HomePage'

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

ReactDOM.render(
우지원's avatar
ul    
우지원 committed
17
18
19
20
21
22
23
24
25
26
  <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
27
28
29
30
31
32
33
  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();