A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
595 B
23 lines
595 B
6 years ago
|
import React from 'react';
|
||
|
import ReactDOM from 'react-dom';
|
||
7 years ago
|
import SettingsComponent from './components';
|
||
6 years ago
|
import reducer from './reducers/setting';
|
||
6 years ago
|
import { Provider } from 'react-redux';
|
||
6 years ago
|
import promise from 'redux-promise';
|
||
|
import { createStore, applyMiddleware } from 'redux';
|
||
7 years ago
|
|
||
6 years ago
|
const store = createStore(
|
||
|
reducer,
|
||
|
applyMiddleware(promise),
|
||
|
);
|
||
7 years ago
|
|
||
|
document.addEventListener('DOMContentLoaded', () => {
|
||
|
let wrapper = document.getElementById('vimvixen-settings');
|
||
6 years ago
|
ReactDOM.render(
|
||
7 years ago
|
<Provider store={store}>
|
||
6 years ago
|
<SettingsComponent store={store} />
|
||
7 years ago
|
</Provider>,
|
||
|
wrapper
|
||
|
);
|
||
|
});
|