Created
August 11, 2020 18:07
-
-
Save hindmost/75331b686f89bad86e7437c993ab1270 to your computer and use it in GitHub Desktop.
cra-rich-chrome-ext article: src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { createStore } from 'redux'; | |
import { Provider } from 'react-redux'; | |
import storeCreatorFactory from 'reduxed-chrome-storage'; | |
import reducers from './reducers'; | |
import 'semantic-ui-css/semantic.min.css'; | |
import App from './views/Popup/App'; | |
(async () => { | |
const store = await storeCreatorFactory({createStore})(reducers); | |
ReactDOM.render( | |
<Provider store={store}> | |
<App /> | |
</Provider>, | |
document.getElementById('root') | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment