Beginning server-side rendering support

This commit is contained in:
SteveSandersonMS
2016-02-07 21:41:00 -08:00
parent 5811c98230
commit 9c16c7da3d
15 changed files with 208 additions and 47 deletions

View File

@@ -1,19 +1,19 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { browserHistory, Router } from 'react-router';
import { Provider } from 'react-redux';
React; // Need this reference otherwise TypeScript doesn't think we're using it and ignores the import
import './styles/styles.css';
import 'bootstrap/dist/css/bootstrap.css';
import configureStore from './configureStore';
import { App } from './components/App';
import { routes } from './routes';
const store = configureStore(browserHistory);
ReactDOM.render(
<Provider store={ store }>
<App history={ browserHistory } />
<Router history={ browserHistory } children={ routes } />
</Provider>,
document.getElementById('react-app')
);