move react routes to specific file
This commit is contained in:
15
app/javascript/src/Routes.tsx
Normal file
15
app/javascript/src/Routes.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user