This commit is contained in:
crusader 2017-07-20 19:30:34 +09:00
parent 0b43f86f59
commit 4004476cfe
3 changed files with 38 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { Route, Switch } from 'react-router-dom';
import { Route, RouteProps, Switch } from 'react-router-dom';
import SignIn from '../views/member/SignIn';
import SensorList from '../views/monitoring/sensor/SensorList';
@ -15,11 +15,19 @@ import { PWChange } from '@overflow/member/react/components/PWChange';
// import { Tree } from '@overflow/temp/react/components/commons/Tree';
import { TableExampleSortable } from '@overflow/temp/react/components/TableExampleSortable';
import Home from '../views/Home';
interface AppRouter {
interface AppRouter extends RouteProps {
}
const routeConfig: AppRouter[] = [
{
path: '/',
component: Home,
},
];
const routes = (
<Switch>

View File

@ -0,0 +1,28 @@
import * as React from 'react';
import { RouteComponentProps } from 'react-router';
export interface Props {
}
export interface State {
}
class Home extends React.Component<RouteComponentProps<Props>, State> {
public constructor(props?: RouteComponentProps<Props>, context?: State) {
super(props, context);
}
public render(): JSX.Element {
return (
<div>
HOME
</div>
);
}
}
export default Home;