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.
22 lines
595 B
22 lines
595 B
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 |
|
); |
|
});
|
|
|