Skip to content

Instantly share code, notes, and snippets.

@Danielshow
Created May 31, 2019 22:12
Show Gist options
  • Save Danielshow/33688c7b03c3244c25607644f4147f2d to your computer and use it in GitHub Desktop.
Save Danielshow/33688c7b03c3244c25607644f4147f2d to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import reducer from './reducer'
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
const store = createStore(reducer);
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment