File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/ReactSpa/ClientApp Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import './css/site.css';
44import * as React from 'react' ;
55import * as ReactDOM from 'react-dom' ;
66import { browserHistory , Router } from 'react-router' ;
7- import { routes } from './routes' ;
7+ import routes from './routes' ;
88
99// This code starts up the React app when it runs in a browser. It sets up the routing configuration
1010// and injects the app into a DOM element.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Home } from './components/Home';
55import { FetchData } from './components/FetchData' ;
66import { Counter } from './components/Counter' ;
77
8- export const routes = < Route component = { Layout } >
8+ export default < Route component = { Layout } >
99 < Route path = '/' components = { { body : Home } } />
1010 < Route path = '/counter' components = { { body : Counter } } />
1111 < Route path = '/fetchdata' components = { { body : FetchData } } />
You can’t perform that action at this time.
0 commit comments