import './style/_vars.scss';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';

import App from './component/app';
import storeCreate from './lib/store-create';
import io from './lib/io.js';
import editSubscribers from './subscribe/edit.js';

const store = storeCreate();

let subscribers = Object.assign(editSubscribers);
io(store, subscribers);

let AppContainer = () => (
  <Provider store={store}>
    <App/>
  </Provider>
);

ReactDom.render(<AppContainer />, document.getElementById('root'));
