2023-05-13 20:15:18 +08:00
|
|
|
import React from 'react';
|
|
|
|
import {createRoot} from 'react-dom/client';
|
|
|
|
import './style.css';
|
|
|
|
import App from './App';
|
2023-05-04 23:55:24 +08:00
|
|
|
import {HashRouter} from 'react-router-dom';
|
2023-05-13 20:15:18 +08:00
|
|
|
import {startup} from './startup';
|
2023-05-03 23:38:54 +08:00
|
|
|
|
2023-05-13 20:15:18 +08:00
|
|
|
startup().then(() => {
|
|
|
|
const container = document.getElementById('root');
|
2023-05-03 23:38:54 +08:00
|
|
|
|
2023-05-13 20:15:18 +08:00
|
|
|
const root = createRoot(container!);
|
2023-05-03 23:38:54 +08:00
|
|
|
|
2023-05-13 20:15:18 +08:00
|
|
|
root.render(
|
2023-05-04 23:55:24 +08:00
|
|
|
<HashRouter>
|
2023-05-13 20:15:18 +08:00
|
|
|
<App/>
|
2023-05-04 23:55:24 +08:00
|
|
|
</HashRouter>
|
2023-05-13 20:15:18 +08:00
|
|
|
);
|
|
|
|
});
|