mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
30 lines
919 B
TypeScript
30 lines
919 B
TypeScript
// @ts-nocheck
|
|
import 'regenerator-runtime/runtime';
|
|
import './wdyr';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { Provider } from 'react-redux';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { PersistGate } from 'redux-persist/integration/react';
|
|
|
|
import '@/services/yup';
|
|
import App from '@/components/App';
|
|
import * as serviceWorker from '@/serviceWorker';
|
|
import { store, persistor } from '@/store/createStore';
|
|
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<PersistGate loading={null} persistor={persistor}>
|
|
<BrowserRouter>
|
|
<App />
|
|
</BrowserRouter>
|
|
</PersistGate>
|
|
</Provider>,
|
|
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: https://bit.ly/CRA-PWA
|
|
serviceWorker.unregister();
|