From 2c3f29df11ced33e55e1f9d1b079fa5dfdfaf9ec Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Tue, 1 Mar 2016 13:23:51 +0000 Subject: [PATCH] Avoid bogus build warning about unused variable --- templates/ReactSpa/ClientApp/boot.tsx | 2 +- templates/ReactSpa/ClientApp/routes.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/ReactSpa/ClientApp/boot.tsx b/templates/ReactSpa/ClientApp/boot.tsx index 7d1e6bf..86e48b1 100644 --- a/templates/ReactSpa/ClientApp/boot.tsx +++ b/templates/ReactSpa/ClientApp/boot.tsx @@ -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. diff --git a/templates/ReactSpa/ClientApp/routes.tsx b/templates/ReactSpa/ClientApp/routes.tsx index 84f153e..6084614 100644 --- a/templates/ReactSpa/ClientApp/routes.tsx +++ b/templates/ReactSpa/ClientApp/routes.tsx @@ -5,7 +5,7 @@ import { Home } from './components/Home'; import { FetchData } from './components/FetchData'; import { Counter } from './components/Counter'; -export const routes = +export default