index.js 1.27 KB
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
import React from 'react';
import ReactDOM from 'react-dom';
Kim, Subin's avatar
Kim, Subin committed
3
4
5
6
7
8
9
import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom';
import Home from './Pages/Home';
import Login from './Pages/Login';
import Signup from './Pages/Signup';
import Admin from './Pages/Admin';
import ShoppingCart from './Pages/ShoppingCart';
import Payment from './Pages/Payment';
Jiwon Yoon's avatar
Jiwon Yoon committed
10
import reportWebVitals from './reportWebVitals';
Jiwon Yoon's avatar
Jiwon Yoon committed
11
import 'bootstrap/dist/css/bootstrap.min.css';
12
import ProductsRegist from './Pages/ProductsRegist';
Jiwon Yoon's avatar
Jiwon Yoon committed
13
14
15

ReactDOM.render(
  <React.StrictMode>
Kim, Subin's avatar
Kim, Subin committed
16
17
    <Router>
      <Switch>
18
19
20
21
        {/* <Route exact path="/" component={Home} /> */}
        {/* <Route exact path="/" component={ShoppingCart} /> */}
        {/* <Route exact path="/" component={Payment} /> */}
        <Route exact path="/" component={ProductsRegist} />
Kim, Subin's avatar
Kim, Subin committed
22
23
24
25
26
        <Route path="/login" component={Login} />
        <Route path="/signup" component={Signup} />
        <Redirect path="/" to="/" />
      </Switch>
    </Router>
Jiwon Yoon's avatar
Jiwon Yoon committed
27
28
29
30
31
32
33
34
  </React.StrictMode>,
  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();