move react routes to specific file

This commit is contained in:
João Geonizeli
2021-08-04 16:33:58 -03:00
parent bfb716bee2
commit 64a7fc7da9
2 changed files with 34 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
import type { FC } from "react";
import React from "react";
import { Switch, Route } from "react-router-dom";
import { Home } from "./pages";
export const Routes: FC = () => {
return (
<Switch>
<Route path="/">
<Home />
</Route>
</Switch>
);
};