forked from WebMemex/webmemex-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.jsx
More file actions
30 lines (24 loc) · 784 Bytes
/
Copy pathmain.jsx
File metadata and controls
30 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from './store'
import overview from 'src/overview'
import './base.css'
// Include development tools if we are not building for production
let ReduxDevTools
if (process.env.NODE_ENV !== 'production') {
ReduxDevTools = require('src/dev/redux-devtools-component').default
}
// Set up the Redux store
const store = configureStore({ReduxDevTools})
store.dispatch(overview.actions.init())
// Render the UI to the screen
ReactDOM.render(
<Provider store={store}>
<div>
<overview.components.Overview grabFocusOnMount />
{ReduxDevTools && <ReduxDevTools />}
</div>
</Provider>,
document.getElementById('app')
)