18 lines
393 B
TypeScript
18 lines
393 B
TypeScript
/* Wouter */
|
|
import { Router, Switch, Route } from "wouter";
|
|
import { useHashLocation } from "wouter/use-hash-location";
|
|
|
|
/* Routes */
|
|
import NotFound from "@/routes/NotFound";
|
|
|
|
const RootRouter = () => (
|
|
<Router hook={useHashLocation}>
|
|
<Switch>
|
|
{/* Fallback (eg. 'Not Found / 404') */}
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
</Router>
|
|
);
|
|
|
|
export default RootRouter;
|