-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (31 loc) · 1.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { Fragment } from "react";
import { render } from "react-dom";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
import { I18nextProvider } from "react-i18next";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import i18nextInstance from "./localization/i18next";
import Router from "./router/Router";
import store, { persistor } from "./store";
import registerServiceWorker from "./registerServiceWorker";
import "typeface-roboto";
import Reboot from "material-ui/Reboot";
import theme from "./material-ui-theme";
// Configure JSS
const rootElement = document.getElementById("root");
render(
<I18nextProvider i18n={i18nextInstance}>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Fragment>
<Reboot />
<MuiThemeProvider theme={theme}>
<Router />
</MuiThemeProvider>
</Fragment>
</PersistGate>
</Provider>
</I18nextProvider>,
rootElement
);
registerServiceWorker();