Avoid bogus build warning about unused variable

This commit is contained in:
SteveSandersonMS
2016-03-01 13:23:51 +00:00
parent 60bcbc4d12
commit 2c3f29df11
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import './css/site.css';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { browserHistory, Router } from 'react-router';
import { routes } from './routes';
import routes from './routes';
// This code starts up the React app when it runs in a browser. It sets up the routing configuration
// and injects the app into a DOM element.

View File

@@ -5,7 +5,7 @@ import { Home } from './components/Home';
import { FetchData } from './components/FetchData';
import { Counter } from './components/Counter';
export const routes = <Route component={ Layout }>
export default <Route component={ Layout }>
<Route path='/' components={{ body: Home }} />
<Route path='/counter' components={{ body: Counter }} />
<Route path='/fetchdata' components={{ body: FetchData }} />