mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
13 lines
466 B
TypeScript
13 lines
466 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 const routes = <Layout>
|
|
<Route exact path='/' component={ Home } />
|
|
<Route path='/counter' component={ Counter } />
|
|
<Route path='/fetchdata/:startDateIndex?' component={ FetchData } />
|
|
</Layout>;
|