mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
import * as React from 'react';
|
|
import { Route } from 'react-router-dom';
|
|
import { Layout } from './components/Layout';
|
|
import { Home } from './components/Home';
|
|
import { FetchData } from './components/FetchData';
|
|
import { Counter } from './components/Counter';
|
|
|
|
export default <Layout>
|
|
<Route exact path='/' component={ Home } />
|
|
<Route path='/counter' component={ Counter } />
|
|
<Route path='/fetchdata' component={ FetchData } />
|
|
</Layout>;
|
|
|
|
// Allow Hot Module Reloading
|
|
declare var module: any;
|
|
if (module.hot) {
|
|
module.hot.accept();
|
|
}
|