20 lines
417 B
JavaScript
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')
|
|
);
|