Created
May 17, 2017 21:50
-
-
Save makslevental/2f0896ff49aebe273e973af0b631bdb3 to your computer and use it in GitHub Desktop.
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 { 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