
* Add an ability to run app from subfolder * linting * Fix all the static resources URLs and manifest.json Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
20 lines
556 B
TypeScript
20 lines
556 B
TypeScript
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { Provider } from 'react-redux';
|
|
import App from 'components/App';
|
|
import { store } from 'redux/store';
|
|
import 'lib/constants';
|
|
import 'theme/index.scss';
|
|
|
|
const container =
|
|
document.getElementById('root') || document.createElement('div');
|
|
const root = createRoot(container);
|
|
|
|
root.render(
|
|
<Provider store={store}>
|
|
<BrowserRouter basename={window.basePath || '/'}>
|
|
<App />
|
|
</BrowserRouter>
|
|
</Provider>
|
|
);
|