ironbar-persea/frontend/index.js

20 lines
417 B
JavaScript
Raw Permalink Normal View History

2018-09-03 02:03:23 -05:00
import React from 'react';
import ReactDOM from 'react-dom';
2019-03-05 23:20:26 -06:00
import {Provider} from 'react-redux';
2018-09-03 02:03:23 -05:00
2019-03-05 23:20:26 -06:00
import App from './app/component';
import {create as createStore} from './store';
const store = createStore();
// Application start.
import {actions} from './app';
store.dispatch(actions.creators.start());
2018-09-03 02:03:23 -05:00
ReactDOM.render(
2019-03-05 23:20:26 -06:00
<Provider store={store}>
<App />
</Provider>,
2018-09-03 02:03:23 -05:00
document.querySelector('.root')
);