Skip to content

Instantly share code, notes, and snippets.

@makslevental
Created May 17, 2017 21:50
Show Gist options
  • Save makslevental/2f0896ff49aebe273e973af0b631bdb3 to your computer and use it in GitHub Desktop.
Save makslevental/2f0896ff49aebe273e973af0b631bdb3 to your computer and use it in GitHub Desktop.
import { Provider } from "react-redux";
import store from "./redux/store";
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import App from "./components/App";
import "./scss/index.css";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import WebFontLoader from "webfontloader";
import getMuiTheme from "material-ui/styles/getMuiTheme";
WebFontLoader.load({
google: {
families: ['Roboto:300,400,500,700', 'Material Icons'],
},
});
const muiTheme = getMuiTheme({
palette: {
primary1Color: "#ff5722",
},
});
ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
<MuiThemeProvider muiTheme={muiTheme}>
<App />
</MuiThemeProvider>
</BrowserRouter>
</Provider>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment