import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import ReduxPromise from 'redux-promise';
import ReduxThunk from 'redux-thunk';

import reducers from './reducers';
import routes from './routes'

// for bundling your styles
import './bundle.scss';

const createStoreWithMiddleware = applyMiddleware(ReduxThunk, ReduxPromise)(createStore);

ReactDOM.render(
  <Provider store={createStoreWithMiddleware(reducers)}>
    <Router history={browserHistory} routes={routes}>
    </Router>
  </Provider>
  , document.querySelector('.react-root'));

@@ -497,45 +497,40 @@
 e);%0A
-%0AReactDOM.render(%0A  %3CProvider
+// Redux DevTools%0Aconst
  store
-=%7B
+ = 
 crea
@@ -559,17 +559,117 @@
 reducers
-)
+, window.devToolsExtension && window.devToolsExtension());%0A%0AReactDOM.render(%0A  %3CProvider store=%7Bstore
 %7D%3E%0A    %3C

add redux dev tools functionality (#4)