Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { ReactDOM, render } from 'react-dom';
- import { Provider } from 'react-redux';
- import { browserHistory, Router } from 'react-router';
- import { syncHistoryWithStore } from 'react-router-redux';
- import configureStore from '../store/configureStore';
- import routes from '../routes';
- const initialState = {};
- const target = document.getElementById('app');
- const store = configureStore(initialState, browserHistory);
- const history = syncHistoryWithStore(browserHistory, store);
- const node = (
- <Provider store={store}>
- <Router history={history}>
- {routes}
- </Router>
- </Provider>
- );
- ReactDOM.render(node, target);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement