You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
691 B
36 lines
691 B
import React from "react"; |
|
|
|
import { BrowserRouter, Routes, Route } from "react-router-dom"; |
|
|
|
import _ from "lodash"; |
|
import Home from "./Views/Home"; |
|
|
|
function Router() { |
|
return ( |
|
<div |
|
className={_.join([ |
|
"min-h-screen min-w-screen rtl overflow-x-hidden bg-white", |
|
])} |
|
> |
|
<BrowserRouter> |
|
<Routes> |
|
<Route path="/" element={<Home />} /> |
|
<Route |
|
path="*" |
|
element={ |
|
<main> |
|
<h1>No matches routes.</h1> |
|
</main> |
|
} |
|
/> |
|
</Routes> |
|
</BrowserRouter> |
|
</div> |
|
); |
|
} |
|
|
|
Router.defaultProps = { |
|
isDark: false, |
|
}; |
|
|
|
export default Router;
|
|
|