import React from 'react';
import {render} from 'react-dom';
import {Router} from 'react-router';
import {Provider} from 'react-redux';
import createStoreWithMiddleware from '../middleware/middleware';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from '../shared/routes';

const history = createBrowserHistory();

render(
    <Provider store={store}>
        <Router children={routes} history={history} />
    </Provider>,
    document.getElementById('react')
);
@@ -129,16 +129,50 @@
 redux';%0A
+import %7BfromJS%7D from 'immutable';%0A
 import c
@@ -225,24 +225,69 @@
 iddleware';%0A
+import reducers from '../reducers/reducers';%0A
 import creat
@@ -381,16 +381,51 @@
 routes';
+%0Aimport immutify from './immutify';
 %0A%0Aconst 
@@ -459,16 +459,127 @@
 ory();%0A%0A
+const initialState = immutify(__INITIAL__);%0A%0Aconst store = createStoreWithMiddleware(reducers, initialState);%0A%0A
 render(%0A

initialize redux on the client