You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PersonalWebsite_Static/src/components/Main.tsx

17 lines
424 B
TypeScript

import { Route, Switch } from "react-router-dom";
import { Contact } from "./Contact";
import { Home } from "./Home";
import { Resume } from "./Resume";
export const Main = () => {
return (
<main>
<Switch>
<Route exact={true} path={"/"} component={Home} />
<Route path={"/contact"} component={Contact} />
<Route path={"/resume"} component={Resume} />
</Switch>
</main>
);
};