Created
August 1, 2020 23:21
-
-
Save GuiSelair/af1f6095844c377627ed936ca9ae3f90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { BrowserRouter, Switch, Route } from "react-router-dom"; | |
import Home from "./pages/home"; | |
import Support from "./pages/support"; | |
export default function Routes(){ | |
return( | |
<BrowserRouter basename="/the-app"> | |
<Switch> | |
<Route path="/" exact component={Home} /> | |
<Route path="/support" component={Support} /> | |
</Switch> | |
</BrowserRouter> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment