MainRouter.jsx 496 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
4
5
6
7
8
import React from "react";
import { Route, Switch } from "react-router-dom";
import Home from "./home/Home";
import Main from "./home/Main";

function MainRouter() {
  return (
    <div>
Sangjune Bae's avatar
Sangjune Bae committed
9
      {/* <Main /> */}
Sangjune Bae's avatar
Sangjune Bae committed
10
11
      <Switch>
        <Route exact path="/">
Sangjune Bae's avatar
Sangjune Bae committed
12
          <Main />
Sangjune Bae's avatar
Sangjune Bae committed
13
14
15
16
17
18
19
20
21
22
23
24
25
        </Route>
        <Route path="/main">
          <Main />
        </Route>
        {/* <Route path="/signup">
          <Signup />
        </Route> */}
      </Switch>
    </div>
  );
}

export default MainRouter;