import React from 'react';
import ReactDOM from 'react-dom'
import { Router, browserHistory} from 'react-router'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import Routes from './Routes'
import allReducers from './reducers'

const store = createStore(allReducers);
console.log("Redux Store initial state: ", store.getState());

ReactDOM.render(
    <Provider store={store}>
        <Router routes={Routes} history={browserHistory}/>
    </Provider>,
    document.getElementById('root'));
