Simple websocket compliant front-end
This commit is contained in:
17
src/config/Router.tsx
Normal file
17
src/config/Router.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
import {BrowserRouter, Route, Routes} from "react-router-dom";
|
||||
import Home from "../layout/pages/Home";
|
||||
import NotFound from "../layout/pages/NotFound";
|
||||
|
||||
const Router = () => {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<Home/>}/>
|
||||
<Route path="*" element={<NotFound/>}/>
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
export default Router;
|
||||
Reference in New Issue
Block a user