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.

27 lines
921 B

import './utils/wdyr';
4 years ago
import React, { Suspense } from 'react';
4 years ago
import { render } from 'react-dom';
4 years ago
import { Drizzle } from '@ezerous/drizzle';
import { Breeze } from '@ezerous/breeze';
4 years ago
import App from './App';
4 years ago
import store from './redux/store';
4 years ago
import AppContext from './components/AppContext';
4 years ago
import drizzleOptions from './options/drizzleOptions';
4 years ago
import breezeOptions from './options/breezeOptions';
4 years ago
import * as serviceWorker from './utils/serviceWorker';
4 years ago
import LoadingScreen from './components/LoadingScreen';
4 years ago
const drizzle = new Drizzle(drizzleOptions, store);
const breeze = new Breeze(breezeOptions, store);
render(
4 years ago
<Suspense fallback={<LoadingScreen />}>
<AppContext.Provider drizzle={drizzle} breeze={breeze}>
<App store={store} />
</AppContext.Provider>
</Suspense>,
4 years ago
document.getElementById('root'),
4 years ago
);
serviceWorker.unregister(); // See also: http://bit.ly/CRA-PWA