Skip to content

Instantly share code, notes, and snippets.

@lesniakania
Created November 3, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesniakania/59949d58f63b8624b3a4 to your computer and use it in GitHub Desktop.
Save lesniakania/59949d58f63b8624b3a4 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { reduxReactRouter, ReduxRouter } from 'redux-router';
import Routes from './routes';
import { configureStore } from './Store';
import createHistory from 'history/lib/createBrowserHistory'
var app = document.getElementById('app');
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState, createHistory, reduxReactRouter);
ReactDOM.render(
<Provider store={store}>
<ReduxRouter routes={Routes} />
</Provider>,
app
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment