App.tsx 805 Bytes
Newer Older
1 2 3 4
import React from "react";
import styles from "./App.module.css";
import { BrowserRouter, Route, Switch } from "react-router-dom";
// import { TypographyProps } from "antd/lib/typography/Typography";
mayi's avatar
mayi committed
5
import { HomePage, SignInPage, Register,Deatil,Studys } from "./pages";
6 7 8 9 10 11 12 13
function App() {
  return (
    <div className={styles.App}>
      <BrowserRouter>
        <Switch>
          <Route exact path="/" component={HomePage} />
          <Route path="/signin" component={SignInPage} />
          <Route path="/register" component={Register} />
mayi's avatar
mayi committed
14
          <Route path="/studys" component={Studys} />
15 16 17 18 19 20 21 22 23
          <Route path="/detail/:tourisRouteId" component={Deatil} />
          <Route render={() => <h1>404 NOT FOUND</h1>} />
        </Switch>
      </BrowserRouter>
    </div>
  );
}

export default App;