MainRouter.jsx 488 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>
      <Home />
      <Switch>
        <Route exact path="/">
          <Home />
        </Route>
        <Route path="/main">
          <Main />
        </Route>
        {/* <Route path="/signup">
          <Signup />
        </Route> */}
      </Switch>
    </div>
  );
}

export default MainRouter;