ironbar-persea/frontend/index.js
2019-03-05 23:20:26 -06:00

20 lines
417 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
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());
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.querySelector('.root')
);