aboutsummaryrefslogtreecommitdiff
path: root/src/settings/index.jsx
blob: 6aec7a0317ed6a5aa8fceacaa4288b121d78e2b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import ReactDOM from 'react-dom';
import SettingsComponent from './components';
import reducer from './reducers/setting';
import { Provider } from 'react-redux';
import promise from 'redux-promise';
import { createStore, applyMiddleware } from 'redux';

const store = createStore(
  reducer,
  applyMiddleware(promise),
);

document.addEventListener('DOMContentLoaded', () => {
  let wrapper = document.getElementById('vimvixen-settings');
  ReactDOM.render(
    <Provider store={store}>
      <SettingsComponent store={store} />
    </Provider>,
    wrapper
  );
});