1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// @flow
import React from 'react';
import Application from './scenes';
import Error404 from './components/errors/Error404';
import { Route, Switch } from 'react-router';
const Routes = () => (
<Switch>
<Route path="/" component={Application} />
<Route path="*" component={Error404} />
</Switch>
);
export default Routes;
// export const routes = [
// {
// path: '/',
// component: HomeLayout,
// indexRoute: { component: HomePage },
// },
// {
// path: '/',
// component: LobbyLayout,
// childRoutes: [{ path: '/games', component: GameBrowser }, { path: '/lobby/*', component: Lobby }],
// },
// {
// path: '*',
// component: Error404,
// },
// ];
|