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:
SteveSandersonMS
2016-02-24 18:32:31 +00:00
parent a6ea8b5101
commit c668387dac
14 changed files with 214 additions and 58 deletions

View File

@@ -0,0 +1,14 @@
import 'bootstrap/dist/css/bootstrap.css';
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';
// 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.
ReactDOM.render(
<Router history={ browserHistory } children={ routes } />,
document.getElementById('react-app')
);