You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

6 years ago
import React from "react";
import { render } from "react-dom";
import { DrizzleProvider } from "drizzle-react";
import { LoadingContainer } from "drizzle-react-components";
import drizzleOptions from "./config/drizzleOptions";
6 years ago
import { ConnectedRouter } from 'connected-react-router'
import routerStore, {history} from './redux/routerStore';
import drizzleStore from './redux/drizzleStore';
import routes from './router/routes'
6 years ago
import * as serviceWorker from "./utils/serviceWorker";
6 years ago
import {Provider} from "react-redux";
6 years ago
render(
6 years ago
<DrizzleProvider options={drizzleOptions} store={drizzleStore}>
<Provider store={routerStore}>
<LoadingContainer>
<ConnectedRouter history={history}>
{ routes }
</ConnectedRouter>
</LoadingContainer>
</Provider>
6 years ago
</DrizzleProvider>,
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: http://bit.ly/CRA-PWA
serviceWorker.unregister();