Last active
January 27, 2016 16:08
-
-
Save mobinni/5a5d2700060cb10e57ca to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import default Styles | |
import '../styles/general/styles.scss'; | |
// Import Modules | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import createBrowserHistory from 'history/lib/createBrowserHistory' | |
import Router from 'react-router'; | |
import routes from './routes'; | |
import {initialise} from '../lib'; | |
import createLogger from 'redux-logger'; | |
import {Provider} from 'react-redux'; | |
const history = createBrowserHistory(); | |
const {store, modules, middlewares} = initialise([createLogger()]); | |
if(process.env.feature.DEV) { | |
window.__STORE__ = store; | |
} | |
ReactDOM.render( | |
<Provider store={store}> | |
<Router history={history} | |
routes={routes} /> | |
</Provider> , | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment