Skip to content

Instantly share code, notes, and snippets.

@charly-palencia
Created June 14, 2019 04:15
Show Gist options
  • Select an option

  • Save charly-palencia/89f717c61da0107b10a02a2eeeaa7c85 to your computer and use it in GitHub Desktop.

Select an option

Save charly-palencia/89f717c61da0107b10a02a2eeeaa7c85 to your computer and use it in GitHub Desktop.
import React from "react";
import ReactDOM from "react-dom";
import { ConnectedRouter } from "connected-react-router";
import { Provider } from "react-redux";
import "redux-thunk";
import "@csstools/normalize.css";
import "reset-css";
import App from "./App";
import store from "./store";
import history from "./history";
import * as serviceWorker from "./serviceWorker";
ReactDOM.render(
<Provider store={store}>
<ConnectedRouter history={history}>
<App />
</ConnectedRouter>
</Provider>,
document.getElementById("root")
);
...
serviceWorker.unregister();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment