aboutsummaryrefslogtreecommitdiff
path: root/src/settings/index.jsx
blob: 7516fb775cfb3a582e5a1920cf9a0d239a9a0a6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import ReactDOM from 'react-dom';
import SettingsComponent from './components';
import reducer from 'settings/reducers/setting';
import Provider from 'shared/store/provider';
import { createStore } from 'shared/store';

const store = createStore(reducer);

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