2018-01-09 02:06:31 +01:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2018-01-18 00:00:03 +01:00
|
|
|
import {Provider} from 'react-redux';
|
|
|
|
import {createStore} from 'redux';
|
2018-01-18 18:33:26 +01:00
|
|
|
import Reducer from 'reducers';
|
|
|
|
import Publish from 'containers/PublishTool';
|
2018-01-18 21:43:02 +01:00
|
|
|
import NavBar from 'containers/NavBar';
|
2018-01-09 02:06:31 +01:00
|
|
|
|
2018-01-10 22:10:08 +01:00
|
|
|
let store = createStore(
|
2018-01-18 18:33:26 +01:00
|
|
|
Reducer,
|
2018-01-10 22:10:08 +01:00
|
|
|
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
|
|
|
|
);
|
2018-01-09 02:06:31 +01:00
|
|
|
|
2018-01-18 21:43:02 +01:00
|
|
|
ReactDOM.render(
|
|
|
|
<Provider store={store}>
|
|
|
|
<NavBar />
|
|
|
|
</Provider>,
|
|
|
|
document.getElementById('react-nav-bar')
|
|
|
|
)
|
|
|
|
|
2018-01-09 02:06:31 +01:00
|
|
|
ReactDOM.render(
|
|
|
|
<Provider store={store}>
|
2018-01-18 18:33:26 +01:00
|
|
|
<Publish />
|
2018-01-09 02:06:31 +01:00
|
|
|
</Provider>,
|
|
|
|
document.getElementById('react-publish-tool')
|
|
|
|
)
|