project-starter-dan
Version:
A project scaffolding tool.
23 lines (19 loc) • 622 B
JavaScript
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { Router, Route, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import configureStore from './redux/store';
import { syncHistoryWithStore } from 'react-router-redux';
//redux setup
const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store);
const reactRoot = document.getElementById('app');
ReactDOM.render(
<Provider store={store}>
<Router history={history}>
<Route path="/" component={App} />
</Router>
</Provider>,
reactRoot
);