mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Add data-loading example to ReactSpa template, and remove server-side rendering (because you really need Redux/Flux or similar for that to make sense)
This commit is contained in:
@@ -2,11 +2,11 @@ import * as React from 'react';
|
||||
import { Router, Route, HistoryBase } from 'react-router';
|
||||
import { Layout } from './components/Layout';
|
||||
import { Home } from './components/Home';
|
||||
import { About } from './components/About';
|
||||
import { FetchData } from './components/FetchData';
|
||||
import { Counter } from './components/Counter';
|
||||
|
||||
export const routes = <Route component={ Layout }>
|
||||
<Route path="/" components={{ body: Home }} />
|
||||
<Route path="/about" components={{ body: About }} />
|
||||
<Route path="/counter" components={{ body: Counter }} />
|
||||
<Route path="/fetchdata" components={{ body: FetchData }} />
|
||||
</Route>;
|
||||
|
||||
Reference in New Issue
Block a user