mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Avoid bogus build warning about unused variable
This commit is contained in:
@@ -4,7 +4,7 @@ import './css/site.css';
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as ReactDOM from 'react-dom';
|
import * as ReactDOM from 'react-dom';
|
||||||
import { browserHistory, Router } from 'react-router';
|
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
|
// 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.
|
// and injects the app into a DOM element.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { Home } from './components/Home';
|
|||||||
import { FetchData } from './components/FetchData';
|
import { FetchData } from './components/FetchData';
|
||||||
import { Counter } from './components/Counter';
|
import { Counter } from './components/Counter';
|
||||||
|
|
||||||
export const routes = <Route component={ Layout }>
|
export default <Route component={ Layout }>
|
||||||
<Route path='/' components={{ body: Home }} />
|
<Route path='/' components={{ body: Home }} />
|
||||||
<Route path='/counter' components={{ body: Counter }} />
|
<Route path='/counter' components={{ body: Counter }} />
|
||||||
<Route path='/fetchdata' components={{ body: FetchData }} />
|
<Route path='/fetchdata' components={{ body: FetchData }} />
|
||||||
|
|||||||
Reference in New Issue
Block a user