spee.ch/react/index.js

19 lines
488 B
JavaScript
Raw Normal View History

2018-01-09 02:06:31 +01:00
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import Reducers from './reducers/index.js';
import PublishTool from './containers/PublishTool.jsx';
2018-01-09 02:06:31 +01:00
2018-01-10 22:10:08 +01:00
let store = createStore(
Reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
2018-01-09 02:06:31 +01:00
ReactDOM.render(
<Provider store={store}>
<PublishTool />
</Provider>,
document.getElementById('react-publish-tool')
)