mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Move React server-side rendering into more general SpaServices package
This commit is contained in:
@@ -8,8 +8,10 @@ import './styles/styles.css';
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import configureStore from './configureStore';
|
||||
import { routes } from './routes';
|
||||
import { ApplicationState } from './store';
|
||||
|
||||
const store = configureStore(browserHistory);
|
||||
const initialState = (window as any).initialReduxState as ApplicationState;
|
||||
const store = configureStore(browserHistory, initialState);
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={ store }>
|
||||
|
||||
Reference in New Issue
Block a user