2021-01-21 16:09:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
import { reduxStore } from './services/rematch/store';
|
|
|
|
|
import { HashRouter } from 'react-router-dom';
|
|
|
|
|
import { createHashHistory } from 'history';
|
|
|
|
|
import { Provider } from 'react-redux';
|
2022-12-19 21:10:00 +01:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2023-03-20 08:52:13 +01:00
|
|
|
import en_US from '@douyinfe/semi-ui/lib/es/locale/source/en_US';
|
|
|
|
|
import { LocaleProvider } from '@douyinfe/semi-ui';
|
|
|
|
|
|
2022-12-19 21:10:00 +01:00
|
|
|
const container = document.getElementById('fredy');
|
|
|
|
|
const root = createRoot(container);
|
2021-01-21 16:09:23 +01:00
|
|
|
const history = createHashHistory();
|
|
|
|
|
|
|
|
|
|
import App from './App';
|
|
|
|
|
|
|
|
|
|
import './Index.less';
|
|
|
|
|
|
2022-12-19 21:10:00 +01:00
|
|
|
root.render(
|
2021-01-21 16:09:23 +01:00
|
|
|
<Provider store={reduxStore}>
|
|
|
|
|
<HashRouter history={history}>
|
2023-03-20 08:52:13 +01:00
|
|
|
<LocaleProvider locale={en_US}>
|
|
|
|
|
<App />
|
|
|
|
|
</LocaleProvider>
|
2021-01-21 16:09:23 +01:00
|
|
|
</HashRouter>
|
2022-12-19 21:10:00 +01:00
|
|
|
</Provider>
|
2021-01-21 16:09:23 +01:00
|
|
|
);
|