App.tsx 744 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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";
import { HomePage, SignInPage, Register,Deatil } from "./pages";
function App() {
  return (
    <div className={styles.App}>
      <BrowserRouter>
        <Switch>
          <Route exact path="/" component={HomePage} />
          <Route path="/signin" component={SignInPage} />
          <Route path="/register" component={Register} />
          <Route path="/detail/:tourisRouteId" component={Deatil} />
          <Route render={() => <h1>404 NOT FOUND</h1>} />
        </Switch>
      </BrowserRouter>
    </div>
  );
}

export default App;