kafka-ui/kafka-ui-react-app/src/index.tsx
Oleg Shur c4f97327c0
Make frontend work properly with custom context url (#2363)
* 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>
2022-08-01 20:47:49 +04:00

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>
);