2019-08-31 04:07:25 +05:00
|
|
|
import React from 'react';
|
2022-11-21 01:12:32 +01:00
|
|
|
import ReactDOM from 'react-dom/client';
|
2019-08-31 04:07:25 +05:00
|
|
|
|
2023-09-04 10:06:59 -05:00
|
|
|
import Config from './constants/Config';
|
2022-12-15 01:34:48 +01:00
|
|
|
import store from './store';
|
|
|
|
|
import history from './history';
|
2019-08-31 04:07:25 +05:00
|
|
|
import Root from './components/Root';
|
|
|
|
|
import './i18n';
|
|
|
|
|
|
2023-09-04 10:06:59 -05:00
|
|
|
fetch(`${Config.SERVER_BASE_URL}/api/appconfig`).then((response) => {
|
|
|
|
|
response.json().then((config) => {
|
|
|
|
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
|
|
|
root.render(React.createElement(Root, { store, history, config }));
|
|
|
|
|
});
|
|
|
|
|
});
|