receptor/src/index.js

23 lines
501 B
JavaScript
Raw Normal View History

2017-08-07 00:23:54 +02:00
import React from 'react';
import { render } from 'react-dom';
2017-08-20 17:57:57 +02:00
import { Provider } from 'react-redux';
import store from './store';
2017-08-07 00:23:54 +02:00
import scss from '../scss/base.scss';
import { ws_init } from './socket';
import { filter_subscribe } from './actions/filter_subscribe';
ws_init(() => {
store.dispatch(filter_subscribe());
store.dispatch(filter_subscribe('server'));
});
2017-08-07 00:23:54 +02:00
render(
2017-08-20 17:57:57 +02:00
<Provider store={store}>
<h1>
Hello world!
</h1>
</Provider>,
2017-08-07 00:23:54 +02:00
document.getElementById('root')
);