redirect unsupported routes

This commit is contained in:
Collin M. Barrett 2018-09-15 12:46:50 -05:00
parent f75af19807
commit ed08b2d040

View file

@ -1,8 +1,13 @@
import * as React from "react";
import { Layout } from "./Layout";
import { Route } from "react-router-dom";
import { Route, Redirect, Switch } from "react-router-dom";
import { Home } from "./modules";
export const Routes = <Layout>
<Route exact path="/" component={ Home }/>
<Switch>
<Route exact path="/" component={Home}/>
<Route>
<Redirect to="/"/>
</Route>
</Switch>
</Layout>;