Skip to content

Instantly share code, notes, and snippets.

@hindmost
Created August 11, 2020 18:07
Show Gist options
  • Save hindmost/75331b686f89bad86e7437c993ab1270 to your computer and use it in GitHub Desktop.
Save hindmost/75331b686f89bad86e7437c993ab1270 to your computer and use it in GitHub Desktop.
cra-rich-chrome-ext article: src/index.js
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