Skip to content

Instantly share code, notes, and snippets.

@GuiSelair
Created August 1, 2020 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuiSelair/af1f6095844c377627ed936ca9ae3f90 to your computer and use it in GitHub Desktop.
Save GuiSelair/af1f6095844c377627ed936ca9ae3f90 to your computer and use it in GitHub Desktop.
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