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';
|
|
|
|
|
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}>
|
|
|
|
|
<App />
|
|
|
|
|
</HashRouter>
|
2022-12-19 21:10:00 +01:00
|
|
|
</Provider>
|
2021-01-21 16:09:23 +01:00
|
|
|
);
|